Hacker News new | ask | show | jobs
by axaxs 1779 days ago
Neat idea, two thoughts:

On mobile, it completely breaks the back button. I had to swipe about 50 times and watch it letter by letter to get back here.

Secondly, what's the data source? I just tested 'segue' which counted as 1, which makes me think it's guessing instead of like, a word map. Just curious now.

1 comments

It does a client-side guess based on vowels, and then hits the server for an authoritative version. The server has a word:syllables map I derived from the CMU Pronouncing Dictionary.

In the "segue" case, it looks like the dictionary lists two pronounciations, one as 'seg', so it uses the lesser of the two. Not sure that pronounciation is valid, though.

Thanks to you and frosted-flakes, I pushed a fix for the back button issue - good catch, I appreciate it.