want a word spliter

Discussion in 'Programming' started by jamesbond, Apr 18, 2006.

  1. #1
    hi, i want a spliter logic to split a given word in a meaningful phrases.
    like "crazyfrog" in to "crazy"+"frog"....

    I want the logic not the tool. i have the keyword database.
     
    jamesbond, Apr 18, 2006 IP
  2. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You may have to apply brute force to this problem. I cannot imagine how to train a program to know the difference between two words joined together and one word which is not.

    However, that will only work in some cases. The result is you may need to recursively split the phrase into two parts and then see if both appear in the dictionary. If both do not, continue until both have a match. You may want to save the last match on either half of the phrase, based on the chance the other side was mispelled.

    People involved with anti-spam measures have looked at this problem, along with the problem of telling the difference between an acidentally and consciously misspelled word. I do not think those projects have gone very far.
     
    clancey, Apr 18, 2006 IP
  3. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #3
    you'd be better to post this question in a program oriented forum, such as Daniweb.
     
    frankcow, Apr 19, 2006 IP