Babs87's Posts
Nairaland Forum › Babs87's Profile › Babs87's Posts
1 (of 1 pages)
Design and implement a spell-checker application in Java. Your program should maintain an array wordList of strings. Enable the user to enter these strings. [using file processing. Once you have this capability, you can obtain the words for the spell checker from a computerized dictionary stored in a file.] Your program should ask a user to enter a word. The program should then look up that word in the wordList array. If the word is present in the array, your program should print “Word is spelled correctly.” If the word is not present in the array, your program should print “word is not spelled correctly.” Then your program should try to locate other words in wordList that might be the word the user intended to type. For example, you can try all possible single transpositions of adjacent letters to discover that the word “default” is a direct match to a word in wordList. Of course, this implies that your program will check all other single transpositions, such as “edfault,” “dfeault,” “deafult,” “defalut,” and “defautl.” When you find a new word that matches one in wordList, print that word in a message, such as “Did you mean "default?".” Implement other tests, such as replacing each double letter with a single letter and any other tests you can develop to improve the value of your spell-checker. |
Gooday everybody, am in my final year and i still dont have a project topic . if anybody can help with an idea on what to do and materials. it could be software, neural network, artificial intelligence, or networking. thanks |
1 (of 1 pages)