Thread: AI for text

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    241

    AI for text

    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?

  2. #2
    Registered User BillBoeBaggins's Avatar
    Join Date
    Oct 2003
    Posts
    107
    Wow that was VAGUE...

    What do you mean? What is your intended purpose? Are you trying to compare strings? Parse Strings???

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    241
    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.

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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.

  5. #5
    Registered User BillBoeBaggins's Avatar
    Join Date
    Oct 2003
    Posts
    107
    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)

  6. #6
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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.

  7. #7
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple space combat AI
    By VirtualAce in forum Game Programming
    Replies: 5
    Last Post: 01-06-2009, 12:54 AM
  2. chess ai contest
    By Raven Arkadon in forum Contests Board
    Replies: 7
    Last Post: 07-09-2005, 06:38 AM
  3. AI Contest Proposal
    By MadCow257 in forum Contests Board
    Replies: 4
    Last Post: 03-13-2005, 03:27 PM
  4. Game Design Topic #1 - AI Behavior
    By TechWins in forum Game Programming
    Replies: 13
    Last Post: 10-11-2002, 10:35 AM
  5. Technique of all board-like games?
    By Nutshell in forum Game Programming
    Replies: 28
    Last Post: 04-24-2002, 08:19 AM