-
Notifications
You must be signed in to change notification settings - Fork 0
nysiisPhonetic
Subhajit Sahu edited this page Feb 12, 2020
·
2 revisions
Gets NYSIIS phonetic of english text.
english.nysiisPhonetic(txt, [ext]);
// txt: english text
// ext: extended NYIIS? (false)
const english = require('extra-english');
english.nysiisPhonetic('Mckee');
// 'MCY'
english.nysiisPhonetic('Mackie');
// 'MCY'
english.nysiisPhonetic('Macintosh');
// 'MCANT'
english.nysiisPhonetic('Heitschmidt');
// 'HATSNAD'