UPDATE: The name of the library is now less misleading than the previous name - as a matter of fact it's a good name
The library now includes 3 algorithms which are very useful for spell-checking, word-games, family-research etc. I needed these algorithms for my spell-checking program, namely:
- Soundex (a phonetic algorithm)
- Double Metaphone (another phonetic algorithm)
- Levenshtein distance (edit distance)
For further information :
-about Soundex, pls check out:
Soundex - Wikipedia, the free encyclopedia
about Double Metaphone, pls have a look at:
Double Metaphone - Wikipedia, the free encyclopedia
-about Levenshtein distance, please see:
Levenshtein distance - Wikipedia, the free encyclopedia
Neither the functions nor their related algorithms were written by me. In my initial library, the sources (for Soundex and LD) were in VB.net while this new version has sources in C# which Agraham kindly converted (and corrected) from VB.net to C#. In addition, he also added the Double Metaphone-algorithm mentioned above. In this way, the library can now also be merged into the application.
The usage should be quite straightforward - just have a look at above web-pages and the syntax of the functions. What regards the Double Metaphone, there are two versions of it, the original returning a string and a numeric version that returns an integer calculated from the string. Please see Agraham's explanation in this very thread.
If required and as soon as I have some spare-time, I can write down a little helpfile with a demo-project. Otherwise you will surely see this library and its usage implemented in my next version of the Spell-Checker. In a few words, this library (and its functions) is the "engine" for creating suggestions for wrongly spelled words.
This library served also as a test for me in learning/building libraries. The library is attached along with the source.
Once again, I want to thank Agraham for his support and help in making this library.:sign0188:
Rgds,
moster67
The library now includes 3 algorithms which are very useful for spell-checking, word-games, family-research etc. I needed these algorithms for my spell-checking program, namely:
- Soundex (a phonetic algorithm)
- Double Metaphone (another phonetic algorithm)
- Levenshtein distance (edit distance)
For further information :
-about Soundex, pls check out:
Soundex - Wikipedia, the free encyclopedia
about Double Metaphone, pls have a look at:
Double Metaphone - Wikipedia, the free encyclopedia
-about Levenshtein distance, please see:
Levenshtein distance - Wikipedia, the free encyclopedia
Neither the functions nor their related algorithms were written by me. In my initial library, the sources (for Soundex and LD) were in VB.net while this new version has sources in C# which Agraham kindly converted (and corrected) from VB.net to C#. In addition, he also added the Double Metaphone-algorithm mentioned above. In this way, the library can now also be merged into the application.
The usage should be quite straightforward - just have a look at above web-pages and the syntax of the functions. What regards the Double Metaphone, there are two versions of it, the original returning a string and a numeric version that returns an integer calculated from the string. Please see Agraham's explanation in this very thread.
If required and as soon as I have some spare-time, I can write down a little helpfile with a demo-project. Otherwise you will surely see this library and its usage implemented in my next version of the Spell-Checker. In a few words, this library (and its functions) is the "engine" for creating suggestions for wrongly spelled words.
This library served also as a test for me in learning/building libraries. The library is attached along with the source.
Once again, I want to thank Agraham for his support and help in making this library.:sign0188:
Rgds,
moster67
Attachments
Last edited: