Does anyone know about any code that is already created and allows you to use regular expressions to evaluate a String of text or text in a TextBox?
Does anyone know about any code that is already created and allows you to use regular expressions to evaluate a String of text or text in a TextBox?
Wow that was VAGUE...
What do you mean? What is your intended purpose? Are you trying to compare strings? Parse Strings???
I want to have a program that interprets English text, and understands it. I mean like almost something that you could do to type a command or question, and it does the command or answers the question.
This sites sister site, www.aihorizon.com has some tutorials on basic AI, but otherwise I don't know of anything specific. A C# board may not be the best place to find this. Try the game board. Word does a pretty good job of tracking down stuff even like the use of passive voice, so it's definately possible and in use. You'd just need a massive hierarchy of objects for verbs, etc... that contained each conjugation, synonyms, etc... and just do that for the whole dictionary.
If it is not within the defined context of a game, meaning you want it to understand anything said, in any set structure, that will be tough.
But if you are trying to utilize it for a game then it is easy.
Punch John Shoulder Hard
[Action] [Recipient] [Destination] [Power]
etc... ( I just woke up, so everything seems like fuzzy logic right now)
That brings up another interesting point too - structure. Sentence structures vary greatly among people. That was a big problem with early adventure games. One of the only ways to solve this easily is by just converting the sentence into a conglomerate of word definitions, and assuming based on that. But their can certainly be some ambiguity using that method. You really need to be more specific regarding what project this is for if you're going to find anything useful.
There is a regular expression implementation in .NET in System.Text.RegularExpressions.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.