Thread: IDEA: Sentence builder

  1. #1
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    IDEA: Sentence builder

    There aren't so many ideas coming in so I'll contribute with some more .

    The task is to write a function that takes a string as an argument then converts it to a sentence.
    Have a look at this link and you'll know what I mean:

    http://www.cprogramming.com/cboard/s...ghlight=cyborg

    The theme this time will be programming.
    The function should be able to take at least 10 characters and make them into a reasonable good sentence. The better sentences the higher chance of winning.

    Example:
    M.A.G.O.S. - Multitasked And Graphical Operative System

    ...something like that...
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  2. #2
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807
    I don't understand the main idea of the program, unleast we develop an AI type of program that know to create correct and meaningful sentences, the program will be very small and I think we'll have an array of words (or better a dictionary) and start to random, that's all.

    Or I'm making a mistake, and your idea goes far than this?

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Well, I guess it's up to the programmer to decide what kind of algorithm the sentence builder should use. Whether it be random words from a dictionary or something more advanced (just random words doesn't form sentences very well ).
    It doesn't have to be a perfect sentence builder, but it would be nice if some kind of smart solution lies behind.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 10-03-2006, 04:48 PM
  2. THE END - Borland C++ Builder, Delphi, J Builder?
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 02-28-2006, 11:23 PM
  3. Have an idea?
    By B0bDole in forum Projects and Job Recruitment
    Replies: 46
    Last Post: 01-13-2005, 03:25 PM
  4. A little problem about an idea, help please
    By louis_mine in forum C++ Programming
    Replies: 3
    Last Post: 09-10-2004, 09:52 PM
  5. New idea on conveting byte to bits/bits to byte
    By megablue in forum C Programming
    Replies: 10
    Last Post: 10-26-2003, 01:16 AM