Is there an algorithm for generating homophones?
Input "cypress", output = { cipress, cipres, cypres, sipress, sypress }
Try It.This Library will generate as you required
npm install homophonizer
Homophonizer
I made one. Source code here: https://github.com/evanshort73/homophone
Try it out in your browser at http://evanshort.name/homophone/
Basic idea: Download the CMU Pronouncing Dictionary, and create a file of allowed phoneme substitutions and their costs. Do a depth first search of every possible substitution, backtracking when the partial result is not the beginning of any dictionary word.
Soundex is the reverse of this - mapping homophones to the same value. If you indexed every word in a dictionary by its Soundex value, then you could do a lookup to find all homophones of a given word.
There is a (and I quote..) Homophoner (stiffled giggle) here: http://yacomink.com/homophoner/
It seems to be using YUI
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With