UNPKG

phonemic-transcriber

Version:

A simple phonemic transcriber for the american english language.

94 lines (93 loc) 11.7 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="author" content="Armotus"> <meta name="robots" content="noindex, nofollow"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" href="../fav/favicon.svg"> <title>Docs</title> <style> *{border:0;margin:0;padding:0;outline:0;font-size:16px;line-height:1.2;list-style:none;list-style-type:none;text-decoration:none;box-sizing:border-box;font-family:sans-serif} body{margin:3em 6em;background-color:#fff} h1{font-size:1.8rem;margin:1.2em 0} h2{font-size:1.5rem;margin:1.5em 0} h1,h2{color:#0f0f0f;font-weight:700} p{margin:1.2em 0} p.space{margin-bottom:-0.9em} p{max-width:854px;text-align:justify} pre{background-color:#f3f3f3;border:1px solid #ddd;padding:.9em 0} a{outline:none;color:#00f;text-decoration:none;background-color:#fff} code{max-width:854px;padding-left:1.8em;line-height:1.8;font-family:monospace} img{width:100%;height:auto;margin:auto;border:none;outline:none;display:block;max-width:854px;box-sizing:border-box} div{margin:0;width:100%;height:auto;line-height:0;display:block;max-width:854px} @media (max-width: 1200px) { body{margin:3em .9em 3em .6em} } </style> </head> <body> <h1>PHONEMIC TRANSCRIPTION</h1> <p>A simple phonemic transcriber for the american english language.</p> <h2>SCREENSHOTS</h2> <div><img width="854" height="518" src="light.png" alt="light-theme"></div><br> <div><img width="854" height="518" src="dark.png" alt="dark-theme"></div> <h2>PHONEMES&nbsp; "A"&nbsp; (&nbsp;<a href="https://en.wikipedia.org/wiki/General_American_English">GA</a>&nbsp;)</h2> <p>A0 &#8226; Carnegie Mellon University (&nbsp;<a href="https://en.wikipedia.org/wiki/CMU_Pronouncing_Dictionary">CMU</a>&nbsp;)</p> <p>|&nbsp; AH&nbsp;, EH&nbsp;, IH&nbsp;, UH&nbsp;, AE&nbsp;, AH0&nbsp;, ER0&nbsp;&nbsp;|&nbsp; AA&nbsp;, ER&nbsp;, IY&nbsp;, AO&nbsp;, UW&nbsp;&nbsp;|&nbsp; AY&nbsp;, EY&nbsp;, OY&nbsp;, AW&nbsp;, OW&nbsp;&nbsp;|&nbsp; Stress&nbsp;: 0&nbsp;, 1&nbsp;, 2&nbsp;&nbsp;|</p> <p>|&nbsp; B&nbsp;, CH&nbsp;, D&nbsp;, F&nbsp;, G&nbsp;, HH&nbsp;, K&nbsp;, L&nbsp;, M&nbsp;, N&nbsp;, P&nbsp;, R&nbsp;, S&nbsp;, T&nbsp;, V&nbsp;, W&nbsp;, Y&nbsp;, Z&nbsp;&nbsp;|&nbsp; DH&nbsp;, JH&nbsp;, NG&nbsp;, SH&nbsp;, TH&nbsp;, ZH&nbsp;&nbsp;|</p> <p>A1 &#8226; American Phonetic Alphabet (&nbsp;<a href="https://github.com/armotus/phonemic-transcription">APA</a>&nbsp;)</p> <p>|&nbsp; ah&nbsp;, eh&nbsp;, ih&nbsp;, uh&nbsp;, ax&nbsp;, ox&nbsp;, ox~&nbsp;&nbsp;|&nbsp; aq&nbsp;, eq~&nbsp;, iq&nbsp;, oq&nbsp;, uq&nbsp;&nbsp;|&nbsp; ai&nbsp;, ei&nbsp;, oi&nbsp;, au&nbsp;, ou&nbsp;&nbsp;|&nbsp; Stress&nbsp;: a&nbsp;&sup1;, á&nbsp;&sup3;, ä&nbsp;&sup2;&nbsp;&nbsp;|</p> <p>|&nbsp; b&nbsp;, c&nbsp;, d&nbsp;, f&nbsp;, g&nbsp;, j&nbsp;, k&nbsp;, l&nbsp;, m&nbsp;, n&nbsp;, p&nbsp;, r&nbsp;, s&nbsp;, t&nbsp;, v&nbsp;, w&nbsp;, y&nbsp;, z&nbsp;&nbsp;|&nbsp; dh&nbsp;, jh&nbsp;, nh&nbsp;, sh&nbsp;, th&nbsp;, zh&nbsp;&nbsp;|</p> <p>A2 &#8226; Modified American Phonetic Alphabet (&nbsp;<a href="https://github.com/armotus/phonemic-transcription">MAPA</a>&nbsp;)</p> <p>|&nbsp; a&nbsp;, e&nbsp;, i&nbsp;, u&nbsp;, ae&nbsp;, &#601;&nbsp;, &#601;r&nbsp;&nbsp;|&nbsp; aa&nbsp;, eer&nbsp;, ii&nbsp;, oo&nbsp;, uu&nbsp;&nbsp;|&nbsp; ai&nbsp;, ei&nbsp;, oi&nbsp;, au&nbsp;, ou&nbsp;&nbsp;|&nbsp; Stress&nbsp;: a&nbsp;, á&nbsp;, ä&nbsp;&nbsp;|</p> <p>|&nbsp; b&nbsp;, ch&nbsp;, d&nbsp;, f&nbsp;, g&nbsp;, h&nbsp;, k&nbsp;, l&nbsp;, m&nbsp;, n&nbsp;, p&nbsp;, r&nbsp;, s&nbsp;, t&nbsp;, v&nbsp;, w&nbsp;, y&nbsp;, z&nbsp;&nbsp;|&nbsp; dh&nbsp;, j&nbsp;, ng&nbsp;, sh&nbsp;, th&nbsp;, zh&nbsp;&nbsp;|</p> <p>A3 &#8226; Simplified American Phonetic Alphabet (&nbsp;<a href="https://github.com/armotus/phonemic-transcription">SAPA</a>&nbsp;)</p> <p>|&nbsp; a&nbsp;, e&nbsp;, i&nbsp;, u&nbsp;, &#230;&nbsp;, &#601;&nbsp;, &#601;r&nbsp;&nbsp;|&nbsp; &#257;&nbsp;, &#275;r&nbsp;, &#299;&nbsp;, &#333;&nbsp;, &#363;&nbsp;&nbsp;|&nbsp; ai&nbsp;, ei&nbsp;, oi&nbsp;, au&nbsp;, ou&nbsp;&nbsp;|&nbsp; Stress&nbsp;: &sup1;&nbsp;, &sup3;&nbsp;, &sup2;&nbsp;&nbsp;|</p> <p>|&nbsp; b&nbsp;, ch&nbsp;, d&nbsp;, f&nbsp;, g&nbsp;, h&nbsp;, k&nbsp;, l&nbsp;, m&nbsp;, n&nbsp;, p&nbsp;, r&nbsp;, s&nbsp;, t&nbsp;, v&nbsp;, w&nbsp;, y&nbsp;, z&nbsp;&nbsp;|&nbsp; dh&nbsp;, j&nbsp;, &#331;&nbsp;, sh&nbsp;, th&nbsp;, &#351;&nbsp;&nbsp;|</p> <p>A4 &#8226; International Phonetic Alphabet (&nbsp;<a href="https://en.wikipedia.org/wiki/International_Phonetic_Alphabet">IPA</a>&nbsp;)</p> <p>|&nbsp; &#652;&nbsp;, &#603;&nbsp;, &#618;&nbsp;, &#650;&nbsp;, &#230;&nbsp;, &#601;&nbsp;, &#602;&nbsp;&nbsp;|&nbsp; &#593;&#720;&nbsp;, &#605;&#720;&nbsp;, &#105;&#720;&nbsp;, &#596;&#720;&nbsp;, &#117;&#720;&nbsp;&nbsp;|&nbsp; a&#618;&nbsp;, e&#618;&nbsp;, &#596;&#618;&nbsp;, a&#650;&nbsp;, o&#650;&nbsp;&nbsp;|&nbsp; Stress&nbsp;: .&nbsp;, &#712;&nbsp;, &#716;&nbsp;&nbsp;|</p> <p>|&nbsp; b&nbsp;, &#116;&#865;&#643;&nbsp;, d&nbsp;, f&nbsp;, g&nbsp;, h&nbsp;, k&nbsp;, l&nbsp;, m&nbsp;, n&nbsp;, p&nbsp;, r&nbsp;, s&nbsp;, t&nbsp;, v&nbsp;, w&nbsp;, j&nbsp;, z&nbsp;&nbsp;|&nbsp; &#240;&nbsp;, &#100;&#865;&#658;&nbsp;, &#331;&nbsp;, &#643;&nbsp;, &#952;&nbsp;, &#658;&nbsp;&nbsp;|</p> <h2>PHONEMES&nbsp; "B"&nbsp; (&nbsp;<a href="https://en.wikipedia.org/wiki/Received_Pronunciation">RP</a>&nbsp;)</h2> <p>B1 &#8226; English Phonetic Alphabet (&nbsp;<a href="https://github.com/armotus/phonemic-transcription">EPA</a>&nbsp;)</p> <p>|&nbsp; ah&nbsp;, eh&nbsp;, ih&nbsp;, oh&nbsp;, uh&nbsp;, ax&nbsp;, ox&nbsp;&nbsp;|&nbsp; aq&nbsp;, eq&nbsp;, iq&nbsp;, oq&nbsp;, uq&nbsp;&nbsp;|&nbsp; ex&nbsp;, ix&nbsp;, ux&nbsp;, ai&nbsp;, ei&nbsp;, oi&nbsp;, au&nbsp;, ou&nbsp;&nbsp;|</p> <p>|&nbsp; a:i:x&nbsp;, a:u:x&nbsp;&nbsp;|&nbsp; e:i:x&nbsp;, o:i:x&nbsp;, o:u:x&nbsp;&nbsp;|&nbsp; Stress&nbsp;: a&nbsp;&sup1;, á&nbsp;&sup3;, ä&nbsp;&sup2;&nbsp;&nbsp;|</p> <p>|&nbsp; b&nbsp;, c&nbsp;, d&nbsp;, f&nbsp;, g&nbsp;, j&nbsp;, k&nbsp;, l&nbsp;, m&nbsp;, n&nbsp;, p&nbsp;, r&nbsp;, s&nbsp;, t&nbsp;, v&nbsp;, w&nbsp;, y&nbsp;, z&nbsp;&nbsp;|&nbsp; dh&nbsp;, jh&nbsp;, nh&nbsp;, sh&nbsp;, th&nbsp;, zh&nbsp;&nbsp;|</p> <p>B2 &#8226; Modified English Phonetic Alphabet (&nbsp;<a href="https://github.com/armotus/phonemic-transcription">MEPA</a>&nbsp;)</p> <p>|&nbsp; a&nbsp;, e&nbsp;, i&nbsp;, o&nbsp;, u&nbsp;, ae&nbsp;, &#601;&nbsp;&nbsp;|&nbsp; aa&nbsp;, ee&nbsp;, ii&nbsp;, oo&nbsp;, uu&nbsp;&nbsp;|&nbsp; e&#601;&nbsp;, i&#601;&nbsp;, u&#601;&nbsp;, ai&nbsp;, ei&nbsp;, oi&nbsp;, au&nbsp;, &#601;u&nbsp;&nbsp;|</p> <p>|&nbsp; ai&#601;&nbsp;, au&#601;&nbsp;&nbsp;|&nbsp; ei.&#601;&nbsp;, oi.&#601;&nbsp;, &#601;u.&#601;&nbsp;&nbsp;|&nbsp; Stress&nbsp;: a&nbsp;, á&nbsp;, ä&nbsp;&nbsp;|&nbsp; &#601;ú&nbsp;, &#601;ü&nbsp; &rarr;&nbsp; stressed schwa &#601;&nbsp;&nbsp;|</p> <p>|&nbsp; b&nbsp;, ch&nbsp;, d&nbsp;, f&nbsp;, g&nbsp;, h&nbsp;, k&nbsp;, l&nbsp;, m&nbsp;, n&nbsp;, p&nbsp;, r&nbsp;, s&nbsp;, t&nbsp;, v&nbsp;, w&nbsp;, y&nbsp;, z&nbsp;&nbsp;|&nbsp; dh&nbsp;, j&nbsp;, ng&nbsp;, sh&nbsp;, th&nbsp;, zh&nbsp;&nbsp;|</p> <p>B3 &#8226; Simplified English Phonetic Alphabet (&nbsp;<a href="https://github.com/armotus/phonemic-transcription">SEPA</a>&nbsp;)</p> <p>|&nbsp; a&nbsp;, e&nbsp;, i&nbsp;, o&nbsp;, u&nbsp;, &#230;&nbsp;, &#601;&nbsp;&nbsp;|&nbsp; &#257;&nbsp;, &#275;&nbsp;, &#299;&nbsp;, &#333;&nbsp;, &#363;&nbsp;&nbsp;|&nbsp; e&#601;&nbsp;, i&#601;&nbsp;, u&#601;&nbsp;, ai&nbsp;, ei&nbsp;, oi&nbsp;, au&nbsp;, &#601;u&nbsp;&nbsp;|</p> <p>|&nbsp; ai&#601;&nbsp;, au&#601;&nbsp;&nbsp;|&nbsp; ei.&#601;&nbsp;, oi.&#601;&nbsp;, &#601;u.&#601;&nbsp;&nbsp;|&nbsp; Stress&nbsp;: &sup1;&nbsp;, &sup3;&nbsp;, &sup2;&nbsp;&nbsp;|</p> <p>|&nbsp; b&nbsp;, ch&nbsp;, d&nbsp;, f&nbsp;, g&nbsp;, h&nbsp;, k&nbsp;, l&nbsp;, m&nbsp;, n&nbsp;, p&nbsp;, r&nbsp;, s&nbsp;, t&nbsp;, v&nbsp;, w&nbsp;, y&nbsp;, z&nbsp;&nbsp;|&nbsp; dh&nbsp;, j&nbsp;, &#331;&nbsp;, sh&nbsp;, th&nbsp;, &#351;&nbsp;&nbsp;|</p> <p>B4 &#8226; International Phonetic Alphabet (&nbsp;<a href="https://en.wikipedia.org/wiki/International_Phonetic_Alphabet">IPA</a>&nbsp;)</p> <p>|&nbsp; &#652;&nbsp;, e&nbsp;, &#618;&nbsp;, &#594;&nbsp;, &#650;&nbsp;, &#230;&nbsp;, &#601;&nbsp;&nbsp;|&nbsp; &#593;&#720;&nbsp;, &#604;&#720;&nbsp;, &#105;&#720;&nbsp;, &#596;&#720;&nbsp;, &#117;&#720;&nbsp;&nbsp;|&nbsp; e&#601;&nbsp;, &#618;&#601;&nbsp;, &#650;&#601;&nbsp;, a&#618;&nbsp;, e&#618;&nbsp;, &#596;&#618;&nbsp;, a&#650;&nbsp;, &#601;&#650;&nbsp;&nbsp;|</p> <p>|&nbsp; a&#618;&#601;&nbsp;, a&#650;&#601;&nbsp;&nbsp;|&nbsp; e&#618;.&#601;&nbsp;, &#596;&#618;.&#601;&nbsp;, &#601;&#650;.&#601;&nbsp;&nbsp;|&nbsp; Stress&nbsp;: .&nbsp;, &#712;&nbsp;, &#716;&nbsp;&nbsp;|</p> <p>|&nbsp; b&nbsp;, &#116;&#865;&#643;&nbsp;, d&nbsp;, f&nbsp;, g&nbsp;, h&nbsp;, k&nbsp;, l&nbsp;, m&nbsp;, n&nbsp;, p&nbsp;, r&nbsp;, s&nbsp;, t&nbsp;, v&nbsp;, w&nbsp;, j&nbsp;, z&nbsp;&nbsp;|&nbsp; &#240;&nbsp;, &#100;&#865;&#658;&nbsp;, &#331;&nbsp;, &#643;&nbsp;, &#952;&nbsp;, &#658;&nbsp;&nbsp;|</p> <h2>PHILOSOPHY</h2> <p>&#8226; Traditional Transcription (&nbsp;Characters&nbsp;)&nbsp; &rArr;&nbsp; Traditional Orthography&nbsp; &rArr;&nbsp; Traditional Writing (&nbsp;1st&nbsp;)</p> <p>&#8226; Phonetic Transcription (&nbsp;Allophones&nbsp;)&nbsp; &rArr;&nbsp; Phonetic Orthography&nbsp; &rArr;&nbsp; Phonetic Writing (&nbsp;2nd&nbsp;)</p> <p>&#8226; Phonemic Transcription (&nbsp;Phonemes&nbsp;)&nbsp; &rArr;&nbsp; Phonemic Orthography&nbsp; &rArr;&nbsp; Phonemic Writing (&nbsp;3rd&nbsp;)</p> <h2>BIBLIOGRAPHY</h2> <p>&#8226; ARPABET : Advanced Research Projects Agency (&nbsp;<a href="https://en.wikipedia.org/wiki/ARPABET">Link</a>&nbsp;)</p> <p>&#8226; CMU : The CMU Pronouncing Dictionary (&nbsp;<a href="https://en.wikipedia.org/wiki/CMU_Pronouncing_Dictionary">Link</a>&nbsp;)</p> <p>&#8226; IPA : International Phonetic Alphabet (&nbsp;<a href="https://en.wikipedia.org/wiki/International_Phonetic_Alphabet">Link</a>&nbsp;)</p> <p>&#8226; GEMINI : Google's AI Assistant (&nbsp;<a href="https://en.wikipedia.org/wiki/Gemini_(chatbot)">Link</a>&nbsp;)</p> <p>&#8226; MOP : Maximal Onset Principle (&nbsp;<a href="https://en.wikipedia.org/wiki/English_phonology">Link</a>&nbsp;)</p> <p>&#8226; WSP : Weak Syllable Principle (&nbsp;<a href="https://en.wikipedia.org/wiki/Syllable">Link</a>&nbsp;)</p> <p>&#8226; URL : Phonemic Orthography (&nbsp;<a href="https://en.wikipedia.org/wiki/Phonemic_orthography">Link</a>&nbsp;)</p> <p>&#8226; URL : Cambridge Dictionary (&nbsp;<a href="https://dictionary.cambridge.org/us/dictionary/english/american">Link</a>&nbsp;)</p> <p>&#8226; URL : Alphabetic Principle (&nbsp;<a href="https://en.wikipedia.org/wiki/Alphabetic_principle">Link</a>&nbsp;)</p> <h2>INSTALLATION</h2> <pre><code>npm i phonemic-transcriber</code></pre> <h2>USAGE</h2> <pre><code>let text = 'What we know is a drop, what we do not know is an ocean';</code><br><code>let transcriber = require('phonemic-transcriber');</code><br><code>let MAPAphonemetext = transcriber.Transcribe(text,1,1,0,0,0,0,0);</code><br><code>let SAPAphonemetext = transcriber.Transcribe(text,2,1,0,0,0,0,0);</code><br><br><code>console.log(MAPAphonemetext);</code><br><code>console.log(SAPAphonemetext);</code><br><br><code>// wat wii nou iz ə draap , wat wii duu naat nou iz aen ou.shən</code><br><code>// wat wī nou iz ə drāp , wat wī dū nāt nou iz æn ou.shən</code></pre> <h2>TEST</h2> <pre><code>npm test</code></pre> <h2>DEMO</h2> <div><a href="https://armotus.github.io/phonemic-transcription">HOME</a></div> <h2>LICENSE</h2> <div><a href="../abc/abc.html">ABC</a></div> </body> </html>