soundex

Could use some help with this soundex coding

那年仲夏 提交于 2019-12-01 11:13:14
The US census bureau uses a special encoding called “soundex” to locate information about a person. The soundex is an encoding of surnames (last names) based on the way a surname sounds rather than the way it is spelled. Surnames that sound the same, but are spelled differently, like SMITH and SMYTH, have the same code and are filed together. The soundex coding system was developed so that you can find a surname even though it may have been recorded under various spellings. In this lab you will design, code, and document a program that produces the soundex code when input with a surname. A

DotNet Soundex Function

删除回忆录丶 提交于 2019-11-30 16:03:10
I have a database table that has a column of SQLServer Soundex encoded last name + first name. In my C# program I would like to convert a string using soundex for use in my query. Is there either a standard string function for soundex in the dotnet library or is the an open source library that implements it (perhaps as an extension method on string)? I know this is late, but I also needed something similar (though no database involved), and the only answer isn't accurate (fails for 'Tymczak' and 'Pfister'). This is what I came up with: class Program { public static void Main(string[] args) {

How to search for Soundex() substrings in MySQL?

北城以北 提交于 2019-11-30 15:51:42
问题 i got a problem with the Joomla! 3 integrated search engine. This engine's indexer creates so called soundex-values when indexing content like, for example Testobject, Testobject 1, Testobject 2239923, Textobject .... which all have the same soundex-value of T23123. Now my problem is, if i do a search for Test , then there won't be any results since the soundex-value for this term is T230. The query used by the search engine is: SELECT DISTINCT t.term_id AS id, t.term AS term FROM tablename

How to search for Soundex() substrings in MySQL?

谁说我不能喝 提交于 2019-11-30 15:23:37
i got a problem with the Joomla! 3 integrated search engine. This engine's indexer creates so called soundex-values when indexing content like, for example Testobject, Testobject 1, Testobject 2239923, Textobject .... which all have the same soundex-value of T23123. Now my problem is, if i do a search for Test , then there won't be any results since the soundex-value for this term is T230. The query used by the search engine is: SELECT DISTINCT t.term_id AS id, t.term AS term FROM tablename AS t WHERE t.soundex = SOUNDEX('test') I checked the soundex_match function in this topic , but

Use SOUNDEX() word by word on SQL Server

风格不统一 提交于 2019-11-30 14:12:17
问题 Here is my problem. For example I have a table Products that contains a field, Name : Products ID | Name | .. 1 | "USB Key 10Go" 2 | "Intel computer" 3 | "12 inches laptop computer" ... I'm currently implementing a simple search engine (SQL Server and ASP .NET, C#) for an iPhone web-app and I would like to use the SOUNDEX() SQL Server function. The thing is, I can't directly use SOUNDEX on the Name field. (This would be irrelevant since there are several words in the name.) I would like to

Use SOUNDEX() word by word on SQL Server

妖精的绣舞 提交于 2019-11-30 09:40:55
Here is my problem. For example I have a table Products that contains a field, Name : Products ID | Name | .. 1 | "USB Key 10Go" 2 | "Intel computer" 3 | "12 inches laptop computer" ... I'm currently implementing a simple search engine (SQL Server and ASP .NET, C#) for an iPhone web-app and I would like to use the SOUNDEX() SQL Server function. The thing is, I can't directly use SOUNDEX on the Name field. (This would be irrelevant since there are several words in the name.) I would like to apply the SOUNDEX function to each word from the Name field, and then see if any of them matches the

MySQL Full-text search and SOUNDEX

点点圈 提交于 2019-11-30 07:44:57
I am trying to implement a first and last name search using full-text search and SOUNDEX (in case if the name is misspelled). I was trying to do something like SELECT * FROM employees WHERE MATCH SOUNDEX(first_name, last_name) AGAINST SOUNDEX('John 1969 Ivan') but this is not a valid syntax. What I want to achieve, is that when a user types for example "Jon Ivan", the columns first_name | last_name ---------------------- John Ivan would match. Thank you in advance! MySQL tends to fall short when it comes to text searches, fuzzy searches, misspellings, etc. I highly recommend an indexing

MySQL Full-text search and SOUNDEX

独自空忆成欢 提交于 2019-11-29 09:40:20
问题 I am trying to implement a first and last name search using full-text search and SOUNDEX (in case if the name is misspelled). I was trying to do something like SELECT * FROM employees WHERE MATCH SOUNDEX(first_name, last_name) AGAINST SOUNDEX('John 1969 Ivan') but this is not a valid syntax. What I want to achieve, is that when a user types for example "Jon Ivan", the columns first_name | last_name ---------------------- John Ivan would match. Thank you in advance! 回答1: MySQL tends to fall

Finding similar sounding text in VBA [closed]

佐手、 提交于 2019-11-28 17:38:08
My manager tells me that there is a way to evaluate names that are spelled differently but sound similar in the way they are pronounced. Ideally, we want to be able to evaluate a user-entered search name and return exact matches as well as "similar sounding" names. He called the process "Soundits" but I cannot find any info on Google. Does this exist? Does anyone know if it is available for VBA (Access)? Lawrence P. Kelley Nice question! You're question includes a great example of the idea itself. There is an algorithm called the Russell Soundex algorithm, a standard technique in many

Enabling soundex/metaphone for non-English characters

大兔子大兔子 提交于 2019-11-28 09:09:05
I've been studying soundex, metaphone and other string search techniques the past few days, and in my understanding both algorithms work well in handling non-English words transliterated to English. However the requirement that I have would be for such search to work in the original, untransliterated languages, accomodating alphabets such as German, Norwegian, and even Cyrilic alphabets. Are there any search algorithms capable of handling these alphabets completely? Or am I better off using third party full-text-search libraries such as Lucene? Consequently, the question then becomes 'does