Spelling check system

rnyacoubrnyacoub Member Posts: 132
edited July 2012 in Working with GS (Mac)
hi,
can we make spelling check system using GS? if so, any hints? can the system detect if the typed word is misspelled and then make the player get the points (spelling is not important)
eg..
the wright word is success where player typed sucess

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    the comparison of user input to stored text is very case and spelling sensitive
    for a simple word like success user could type:
    Sucess
    Success
    sucess
    suecess
    SUCCESS
    and so on …
    and none of those would be processed by the computer as a match for the correct word

    you could ask for userInput letter by letter

    then rules could be confined to either of two conditions
    EX: firstLetter
    Rule: when (Any)
    Attribute: userInput = S
    Attribute: userInput = s
    -changeAttribute: whatever (tableCellValue/gameAttribute) To: what designates correct

    tables work great for this type of processing
    ==
    see: http://en.wikipedia.org/wiki/Spell_checker

    image MH
Sign In or Register to comment.