This script provides package MenzAgitats_Soundex :
Code: Select all
package provide MenzAgitats_Soundex 1.02
MenzAgitat's Soundex is a french soundex but it can be adapted to other languages quite easily.
A soundex returns a phonetical value for a given string.
The interest is for example to compare 2 differently spelled sentences and to tell if they are phonetically similar or not.
Orthographical correctors make use of that technique and it can also be used in pseudo-AI like chatterbots.
Examples (in french):
Code: Select all
MAS::soundex "ceci, est un test qui fonctionne !"
-> 303071031906079307
MAS::soundex "seussies aie hein tayste ki fonksione"
-> 303071031906079307
MAS::soundex "ceci est un autre test"
-> 303070121031
MAS::soundex <string>
you can also use a public command if you want to test things :
!test_soundex <string>
Download:
MenzAgitat's Soundex v1.02