473,466 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Implementing near string matches

This is for an educational program in which the user is asked to type
things and have the answer validated. I can manage alternative
spellings, but if the user types "ikipedia" when the answer is
"Wikipedia", I'd like to do something special. I tried to search for
this, but I don't know what it's called. Would appreciate some pointers
or examples here.

Gustaf
Nov 21 '06 #1
3 1354
Search google for:

soundex algorithm

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Gustaf" <gu*****@algonet.sewrote in message
news:ea**************@TK2MSFTNGP04.phx.gbl...
This is for an educational program in which the user is asked to type
things and have the answer validated. I can manage alternative spellings,
but if the user types "ikipedia" when the answer is "Wikipedia", I'd like
to do something special. I tried to search for this, but I don't know what
it's called. Would appreciate some pointers or examples here.

Gustaf

Nov 21 '06 #2
Hi Gustaf,

Are you trying to compare one string to another in C#?

"Fuzzy Match"
http://groups.google.com/group/micro...befe1dc6bc689e

(Watch for wrapping :)

--
Dave Sexton

"Gustaf" <gu*****@algonet.sewrote in message
news:ea**************@TK2MSFTNGP04.phx.gbl...
This is for an educational program in which the user is asked to type
things and have the answer validated. I can manage alternative spellings,
but if the user types "ikipedia" when the answer is "Wikipedia", I'd like
to do something special. I tried to search for this, but I don't know what
it's called. Would appreciate some pointers or examples here.

Gustaf

Nov 22 '06 #3
Dave Sexton wrote:
Are you trying to compare one string to another in C#?
(long link removed)

Yes, thanks to a search on soundex algorithms I actually found
Levenshtein distance all by myself. It's great. I don't understand it
100%, but it works... :-)

Gustaf
Nov 22 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Martin Lucas-Smith | last post by:
I am trying to take a string and split it into a filename and a number where the number is what follows the *last* instance of a comma in that string. Split and explode won't work because if the...
8
by: Eric Linders | last post by:
Hi, I'm trying to figure out the most efficient method for taking the first character in a string (which will be a number), and use it as a variable to check to see if the other numbers in the...
2
by: B Moor | last post by:
I have a database with 100,000's records, each with a unique reference, eg A123BNK456 I would like to generate a search facility whereby we can choose an exact match or partial match, where the...
3
by: Quack Boy | last post by:
I'm new to MS Access (97) and I need for a query to find *near* matches (not exact duplicates) mainly to weed out duplicates that may contain similar erronious data. EG Table1 ...
14
by: SnakeS | last post by:
Hi, I want modify a string as "112233445566" in "11:22:33:44:55:66" which is the best method? Using a RegExp? and if yes how? Thanks in advance
29
by: zoro | last post by:
Hi, I am new to C#, coming from Delphi. In Delphi, I am using a 3rd party string handling library that includes some very useful string functions, in particular I'm interested in BEFORE (return...
3
by: mehdi_mousavi | last post by:
Hi folks, Consider the following JavaScript function: function removeParam(str, name) { var rgx = new RegExp('(' + name + '=\\w*)|(' + name + '=\\w*;)'); rgx.global = true; rgx.ignoreCase =...
0
by: Lloyd Sheen | last post by:
I am looking for a method to compare strings that will give me an indication of how close the strings are. Exact matches would be 100 and things link "Don't" versus "Dont" would show as close...
6
by: Andrus | last post by:
I need to implement vfp function which uses * and ? wildcards: static bool Like( cExpression1, cExpression2) cExpression1 Specifies the character expression that Like( ) compares with...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.