that truly sounds facinating,
Reference:
phonetic pronounciation If this was my task I'd look at passing all of the words/strings through Text::Metaphone and saving the results, then index them and look for those that have varying degrees of
sounding like each other based on your definition of
sounds like...
I know thats not a reverse algorithm approach, but it seems simpler to me...
If that is simply not feasible, eg. the complete list of possible word matches is unknown and you need to generate words/strings, then you might have to create your own module that:-
(a) calculates the phonetic of your word/string, then
(b) calculates all possible phonetic combinations that have the same
similarity.
But, I think this approach would suffer from a lot of invalid generated words that don't make sense...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.