phonetic-code-util
Semitic Latin phonetic transliteration utilities
Installation
In order to use this library, Node.js should be installed. Then run:
npm install phonetic-code-util --save
Following bundles are available:
phonetic-code-util.js
- UMD ES5 version for use in browser, node, etc.phonetic-code-util.min.js
- minified version ofphonetic-code-util.js
phonetic-code-util.esm.js
- ES6 module version, suitable for bundling with other libraries and applications
The package could also be downloaded directly from: https://registry.npmjs.org/phonetic-code-util/-/phonetic-code-util-1.0.5.tgz
More information
License
Contributing
The final goal for this work is to learn the Word of God as recorded by Peshitta. You are welcomed to improve this implementation or provide feedback. Please feel free to Fork, create a Pull Request or submit Issues.
To read quick updates about Peshitta app or post questions or feedback, follow @peshittap at or
Development
npm install
npm run build
API Reference
- phoneticCodeUtil
- .consonantsByName :
Object.<string, string>
- .consonants :
Array.<string>
- .begadkepatConsonants :
Array.<string>
- .veghadhkhefathConsonants :
Array.<string>
- .begadkepatMap :
Object.<string, string>
- .extraConsonants :
Array.<string>
- .allConsonants :
Array.<string>
- .vowelsByName :
Object.<string, string>
- .commonVowels :
Array.<string>
- .easternVowels :
Array.<string>
- .otherVowels :
Array.<string>
- .allVowels :
Array.<string>
- .silent :
string
- .isConsonant ⇒
boolean
- .isVowel ⇒
boolean
- .isDotted ⇒
boolean
- .removeVowels ⇒
string
- .isBegadkepat ⇒
boolean
- .isVeghadhkhefath ⇒
boolean
- .consonantsByName :
Object.<string, string>
phoneticCodeUtil.consonantsByName : Phonetic latin consonant name to value map
Kind: static constant of phoneticCodeUtil
Array.<string>
phoneticCodeUtil.consonants : Semitic 22 base consonants
Kind: static constant of phoneticCodeUtil
Array.<string>
phoneticCodeUtil.begadkepatConsonants : Begadkepat consonants
Kind: static constant of phoneticCodeUtil
Array.<string>
phoneticCodeUtil.veghadhkhefathConsonants : Veghadhkhefath consonants
Kind: static constant of phoneticCodeUtil
Object.<string, string>
phoneticCodeUtil.begadkepatMap : Begadkepat to veghadhkhefath map
Kind: static constant of phoneticCodeUtil
Array.<string>
phoneticCodeUtil.extraConsonants : Other semitic consonants
Kind: static constant of phoneticCodeUtil
Array.<string>
phoneticCodeUtil.allConsonants : All consonants concatenated
Kind: static constant of phoneticCodeUtil
Object.<string, string>
phoneticCodeUtil.vowelsByName : Phonetic latin vowel name to value map
Kind: static constant of phoneticCodeUtil
Array.<string>
phoneticCodeUtil.commonVowels : Common aramaic vowels
Kind: static constant of phoneticCodeUtil
Array.<string>
phoneticCodeUtil.easternVowels : Eastern/hebrew only vowels
Kind: static constant of phoneticCodeUtil
Array.<string>
phoneticCodeUtil.otherVowels : Other semitic vowels
Kind: static constant of phoneticCodeUtil
Array.<string>
phoneticCodeUtil.allVowels : Semitic vowels including Eastern/Hebrew ones and other short vowels.
Kind: static constant of phoneticCodeUtil
string
phoneticCodeUtil.silent : The silent letter symbol
Kind: static constant of phoneticCodeUtil
boolean
phoneticCodeUtil.isConsonant ⇒ Is character c a semitic consonant
Kind: static constant of phoneticCodeUtil
Returns: boolean
- true if c is semitic consonant
Param | Type | Description |
---|---|---|
c | string |
input character |
boolean
phoneticCodeUtil.isVowel ⇒ Is character c a semitic vowel
Kind: static constant of phoneticCodeUtil
Returns: boolean
- true if c is semitic vowel
Param | Type | Description |
---|---|---|
c | string |
input character |
boolean
phoneticCodeUtil.isDotted ⇒ Return true if input word has vowels
Kind: static constant of phoneticCodeUtil
Returns: boolean
- true if word has vowels
Param | Type | Description |
---|---|---|
word | string |
input word |
string
phoneticCodeUtil.removeVowels ⇒ Remove vowels, leaving consonantal word only.
Kind: static constant of phoneticCodeUtil
Returns: string
- consonantal word
Param | Type | Description |
---|---|---|
word | string |
input word to be processed |
boolean
phoneticCodeUtil.isBegadkepat ⇒ Returns true if c is a begadkepat consonant
Kind: static constant of phoneticCodeUtil
Returns: boolean
- true if c is a begadkepat consonant
Param | Type | Description |
---|---|---|
c | string |
input character |
boolean
phoneticCodeUtil.isVeghadhkhefath ⇒ Returns true if c is a veghadhkhefath consonant
Kind: static constant of phoneticCodeUtil
Returns: boolean
- true if c is a veghadhkhefath consonant
Param | Type | Description |
---|---|---|
c | string |
input character |