Solved

Stemming/Word matching library for C#...

Posted on 2007-03-26
2
2,468 Views
Last Modified: 2013-11-07
I am using the FullTextSearch feature on SQL Server.   This feature let's you very efficiently search through text in a database.  So I can do the following search:

SELECT * FROM MyTable WHERE CONTAINS(Notes, 'run')

Which will return the following records:

The boy will run.
The boy ran.
The boy is running.

So, FTS handles the tenses of the word run, and automatically returns all records with the word run, even if it's in a different tense.  The problem is that now I have these three records, and I want to display the matching word - like this:

The boy will <b>run</b>.
THe boy <b>ran</b>.
The boy is <b>running</b>.

The problem is that from C# the only "word" I know about is run, and the 1st one is the only "simple" match that I can make on the word run.

I guess my question is - are there any free stemming/word matching/etc libraries for C# that would help me match the word run to ran and running like FTS does IN is C#?

Thanks.

EJ
0
Comment
Question by:kalliopi
2 Comments
 
LVL 12

Accepted Solution

by:
ShazbotOK earned 500 total points
ID: 18796377
This dude created a good example on how you can utilize the Inflectional searches in C#:
http://sqljunkies.com/PrintContent.aspx?type=howto&id=9EA5DCFB-A250-4915-BAC4-83261DA96A5B
0
 
LVL 6

Author Comment

by:kalliopi
ID: 18800294
That is EXACTLY what I was looking for!  If I could give you an A+ I would have.  Thank you!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hey Audio! 9 44
2 questions 10 29
PrintingFoundIt(Almost!(Damn!)) 1 30
C# Desktop Application 3 54
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question