Is there a Unix command that searches for similar strings, based mostly on how they sound when spoken?
7
votes
1
answer
1708
views
I have a file of names, and I want to search within it, not caring too much about whether I have spelled the name ( that I am searching for ) correctly. I know that
grep
has quite a bit of functionality to search for a whole slew of similar strings within a file or stream, but as far as I am aware, it does not have functionality to correct for spelling errors, and even if it did, since these are names of people, they wouldn't be found inside a standard dictionary.
Perhaps I can make my file of names into a special dictionary, and then use some standard spell checking tool? Of particular importance in this application is the ability to match similarly sounding words.
For example: "jacob"
should return "Jakob"
. Even better would be if inter-language similarities were also accounted for, so that "miguel"
should match "Michael"
.
Is this something that has been implemented already, or will I have to build my own?
Asked by gabkdlly
(173 rep)
Jun 14, 2013, 09:20 AM
Last activity: Jan 8, 2019, 07:07 AM
Last activity: Jan 8, 2019, 07:07 AM