Rhyme in PHP

It's hard for me to find a way to determine if two words have the same rhyme in English . This should not be the same syllabic ending, but something closer to phonetically similar .

I can't believe that in 2009, the only way to do this is to use these old-fashioned dictionaries for rhymes. Do you know that any resources (in PHP will be a plus) to help me in this painful task?

Thanks.

Your hints were really overpriced. I will take some time to explore it. In any case, more information about DoubleMetaPhone can be found here in the correct PHP code (the other is an extension). There is some interesting information about the MetaPhone and doublemetaphone features in Php.net .

They specifically warn about how a slow double metaphone compares with a metaphone (about 100 times slower).

+3
source share
5 answers

Soundex will not help you. Soundex focuses on the beginning of the word, not its end. In general, it thinks that it will be difficult for you to find any tool for this. Even for a linguist, the root of a word is more interesting than its end.

In general, what you need to do is separate the words in the syllables and compare their last syllable. Even better, if you can divide it into phonemes, reverse the order and make a comparison on the inverse word.
You might be trying to compare the last part of the metaphone keys .

+4
source

. Bradley Buda CS . , . , Levenshtein soundex .

+3
+1

, , , , , /: , , , ; "" "". (levenshtein soundex) , :

+1

Have you tried the soundex () function? This should give you at least some indication if the words sound the same.

0
source

Source: https://habr.com/ru/post/1706801/