Thread: Spell checking program

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    2

    Spell checking program

    Hi,

    I'm looking to implement a very simple spell checker program that takes a text file as input and identifies any words not in its dictionary. The dictionary is itself a text file containing a list of words. Any word not found in the dictionary is considered wrong and the user should be asked to suggest an alternative or leave the word as it is.

    I've been recommended to read the dictionary file into either binary search array or a hash table (I don't know which one would be more efficient).

    I have absolutely minimal experience in C, so if anyone could help me out with this I'd very much appreciate it.

    Many thanks,
    Johnny

  2. #2
    Registered User carrotcake1029's Avatar
    Join Date
    Apr 2008
    Posts
    404
    The method in which to implement it solely depends on what you are doing. Are you asking the user for a word, are you making a text editor, ...?

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    2
    The user inputs a text file to be checked for spelling. Any words in that text file that don't match a word in the dictionary text file are wrong. The user can change the wrong words to create an output file.

    I hope this makes it more clear.

    Thanks.

  4. #4
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Sounds like a sorted array (for binary search) will do.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  2. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  3. is there a way of checking what program uses a specific port?
    By Xterria in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 05-27-2004, 10:54 PM
  4. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM