Solved

Stemming/Word matching library for C#...

Posted on 2007-03-26
2
2,545 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

624 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