Using a sequence 2 sequence model with attention to convert from pronunciation to spelling.
Install the requirements pip install --upgrade -r requirements.txt
Then start a jupyter notebook and open main.ipynb
It reaches a character error rate of <20%, and here are the results . The machine has made some reasonable mistakes but becomes confused by the end of the word.
Note if you view the readme in html you will see lighter letters show where the model was uncertain.
pronunciation | guess | spelling |
---|---|---|
kˈɑkəsˌɔid | cockosoid | caucasoid |
bɹˈæsfˌild | brasfieldd | brassfield |
flˈæʃbl̩b | flashbllb | flashbulb |
hˈɛstiə | hestia | hestia |
kɹˈæbi | crabby | crabby |
tɹədˈus | traduse | traduce |
təlˈulə | talula | tallulah |
bˈitn̩ | beetnn | beaton |
hˈɑlɪtʃɛk | holicckk | holecek |
beidˈɔiə | bedoia | bedoya |
sɪvˈiɹ | siverr | severe |
nɑɪsˈɪpi | nicipp | nicippe |
lˈoʊɹntʃəɹ | lornnchrr | launcher |
bɹɪtˈɔil | bretoil | britoil |
ˈɔɹtnɚ | ortner | ortner |
bˈɪljn̩ɵs | billiants | billionths |
sˈɛmijˌɑn | semiyon | semillon |
lˈɔntʃɪŋ | launching | launching |
zˌubɪlˈɑgə | zubilagaa | zubillaga |
ɹɪfɹˈɛʃɪz | refreshes | refreshes |
ˈɪgnəɹn̩s | ignerancee | ignorance |
tɪsˈɪpəs | tesippus | ctesippus |
vɪtkˈɔfski | vitkowski | witkowski |
dˈɑdɹɪdʒ | dodrrdge | doddridge |
tˈɛnn̩t | tennnnt | tennent |
dˈɪŋk | dink | dink |
ˈeiljənəɹ | alliner | alienor |
dˈuln̩ | dullnn | doolan |
hˈʌlki | hulkee | hulky |
mˈɛmwˌɑɹz | memwars | memoirs |
kɑɹdɑɹˈɛli | cardarelll | cardarelli |
fˈɝmɚ | furmer | firmer |
kwˈɑpjɑ | quapya | kuopio |
kɚˈɛktɪd | careected | corrected |
ɹˈɔɵmn̩ | rothman | rothman |
stɹʊk | strook | strook |
ɹˈɛnkwɪst | renquist | renquist |
ɛspɪnˈoʊzə | espinosa | espinosa |
bˈɪgɪnz | biggins | biggins |
pəɹfˈɛkʃn̩ | perfection | perfection |
ˈændəɹsn̩ | anderson | andersen |
ˈænɪnæt | aninatt | aninat |
ˈɔlɹɪd | alredd | alred |
ɑɹkˈoʊlə | arcola | arcola |
pɹˈimiəm | premium | premium |
bˈɑlmʊŋ | bolmung | balmung |
ɹˌɑbˈʌstəs | robustoss | robustas |
dɪsˈɔɹdɚz | disorddrrs | disorders |
ˈæsɪtˌæl | asitall | acetal |
bjˈuz | buse | buse |
wˈeif | waff | waif |
ˈæɹənˌoʊs | aronose | arenose |
kwˈeiswˈei | quaseeay | kweisui |
ɪmbˈɑdiɪŋ | imbodiingg | embodying |
mˈʌlkɚn | mulkern | mulkern |
kˈɪmɪtʃ | kimiich | kimmich |
tˈupəlˌoʊ | tupelow | tupelo |
tɹɑɪˈʌmf | triumf | triumph |
pɹˈaʊd˺ɚ | prowder | prouder |
wˈɛdʒ | wedge | wedge |
ɹˈɛznɪk | resnikk | reznik |
flˈeid | flayed | flayed |
ˈæsɪlɪn | asilinn | asselin |
dɪkɹˈitl̩ | dicrettl | decretal |
sɪndˈɛt˺ɪk | sindetic | syndetic |
spˈænɪʃ | spannsh | spanish |
ɹˈæli | rally | rallye |
aʊtʃˈoʊn | ouchone | outshone |
sˈɑsəɹˌɑɪt | sosserite | saussurite |
ɪspˈaʊzd | ispousd | espoused |
bɹˈɪklɪn | bricklin | bricklin |
ɛskˈɑləp | escolop | escallop |
hˈɔɹdz | hordss | hordes |
kˈæɹəkɚ | carrcker | caraker |
wˈɑɪthˌɝst | wiithhorst | whitehurst |
mˈɛɹɪmæk | merimac | merrimac |
tʃɑɪnˈi | chinee | chinee |
hˈænlɪn | hanlin | hanlin |
dɑɪˈækənl̩ | diacinal | diaconal |
kwˈɪnin | quinnnn | quinine |
bɹʊjˈɛɹ | bruyerr | bruyeres |
pitsˈutoʊ | pitsuto | pizzuto |
liˈændəɹ | liander | leander |
əblˈɑɪdʒɪŋ | obligingg | obliging |
mˈɔɹfju | morfuu | morphew |
glˈækn̩z | glacknns | glackens |
bukˈeiz | buccass | bouquets |
hˈɝɹmɪt | hermit | hermit |
mˈʌsl̩ | mussle | mussell |
mˈʌt˺əɹ | mutter | mutter |
pəhˈoʊki | pahoki | pahokee |
gɑlˈɑsoʊ | galasso | galasso |
ˈoʊvɚlˌɑk | overlock | overlock |
tˈɪŋktʃəɹ | tincturr | tincture |
pjˈudʒɪn | pugin | pugin |
spˌɛʃəlˌi | speshale | especially |
hˈʊfpɹˌɪnt | hoofprint | hoofprint |
pˈɑntɪk | pontic | pontic |
pɹˈɑɪsɪz | prices | prices |
nˈeivi | navi | navy |
gɹˈɪmʃˌɔ | grimshau | grimshaw |
pɹəvˈɑɪzoʊ | pravizo | proviso |
sˈoʊlɪtɹɑn | soletron | solitron |
ˈænəɵˌoʊl | anathol | anethole |
pɑmpˈɛɹoʊ | pampero | pampero |
ˈɑɪməs | immu | imus |
hˈoʊfəɹ | hoffer | hofer |
smˈɑɹts | smarts | smarts |
mɔɹtˈimɔɹ | mortemorr | mortimore |
blˈɛkmn̩ | bleckman | blechman |
ʃˈæfɹn̩ | shaffron | shafran |
tn̩dɹˈoʊ | tondrow | tondreau |
ˈɝdʒn̩tli | urgentlyy | urgently |
ˌɑksˈænə | oxanaa | oksana |
flˈɪntʃiɹ | flinchir | flintshire |
ʃɹˈɛŋk | shhrenk | schrenk |
plˈæzə | plaza | plaza |
dˈunədɪn | dunadin | dunedin |
dɪsmˈɪʃn̩ | dismition | dismission |
skwˈɪfi | squiffy | squiffy |
skˈɑɪwˌei | skiway | skyway |
fˈæʃɪst | fashist | fascist |
pˈɑləpˌɛɹi | poloparyy | polypary |
ɑɪˈælmənəs | ialmonoss | ialmenus |
ˈɑzmn̩dsn̩ | osmandson | osmundson |
ˈɑɪlˌæʃɪz | illases | eyelashes |
gˈæsp | gasp | gasp |
ɪnwˈɑɪnd | inwindd | inwind |
kˈoʊldli | coldlyy | coldly |
bˈækʃi | bacchyy | bakshi |
æbˈɛsɪv | abessiv | abessive |
tʃɪkˈɔin | chicoin | chicoine |
skˌɪmz | skims | skims |
kɹɪsp | crisp | crisp |
hˈɑɪdɹˌɑɪd | hiddrdd | hydride |
bɹˈæmlɪt | bramlet | bramlett |
jˈɛsəf | yessff | iosif |
gˈɑɹdhˌaʊs | gardhouss | guardhouse |
sˈɪliəs | silius | syleus |
zˈɪŋə | zinga | zinga |
tˈɪŋkɚd | tinkerdd | tinkered |
tˈægəɹ | tagger | tagger |
ˈʌltəmˌoʊ | ultimo | ultimo |
ʃˈɛɹɪl | sherill | sherrill |
poʊstwˈoʊɹ | postworr | postwar |
lˈɔɹiəts | loriets | laureates |
dʒˈɑskɪn | joskin | joskin |
kˈinɪŋ | keening | keening |
slˈoʊli | slolly | slowly |
spoʊsˈɑtoʊ | sposatoo | sposato |
wˌɑt˺əɹˈi | wattere | wateree |
æmfˈɪbiə | amphibia | amphibia |
dʒˌæpənˈiz | jappnnes | japanese |
əntɹˈu | untruu | untrue |
pˈɛɹəbl̩ | perrbbe | parable |
kʊɹzˈɑwə | curzawa | kurzawa |
sˈʌmwˌɛɹ | summaar | somewhere |
zˈɪlviə | zilvia | zilvia |
oʊsˈɔɹioʊ | osorio | osorio |
swˈɪtʃɚ | switcher | switcher |
ɚˈɛndsˌi | areedse | arendsee |
kɑɹvɑjˈæl | carvaial | carvajal |
blˈæknɪs | blackniss | blackness |
pɚˈɪsiˌɛn | perisien | parisienne |
kˈænjn̩z | caniins | canyons |
pɔɹtˈɛndz | portends | portends |
lˈuɪn | luin | lewin |
slˈɪmɪŋ | slimming | slimming |
mʊɹˈɑt | murrtt | murat |
tˈɑɪmn̩ | timen | timon |
hˈimɪn | heemi | hemin |
tˈɝɹnkˌi | ternkee | turnkey |
ɹɪdˈiməbl̩ | redemmbbl | redeemable |
lˈɑkəs | lockos | lochus |
skˈɛɹiɚ | scarierr | scarier |
ˌænəkjˈuʒə | anacujia | anacusia |
stɹˈut | stroot | stroot |
tɑɪmˈiəs | timeus | timaeus |
səbmˈɝs | submerse | submerse |
stˈɑlwəɹɵ | stolwwrth | stalworth |
ˈiniəs | enius | oeneus |
ləzˈɪɹ | lazirr | lazear |
bˈɑoʊ | bao | booe |
ɪkspˈændɪd | expanded | expanded |
zəɹkˈɑnɪk | zerconic | zirconic |
ˈɑbleit | oblatee | oblate |
gˈɪbi | gibby | gibby |
sˈʌmnɚz | sumnners | sumners |
tˈeiln̩ | tallnn | taillon |
tɹˈɪbjut | tributt | tribute |
pˈʌzl̩mn̩t | pussleman | puzzlement |
lˈændfˌɪlz | landfilss | landfills |