Spellchecker refinement needed

This is a discussion on Spellchecker refinement needed within the C Programming forums, part of the General Programming Boards category; @Tater: The program works as it is. No extra pointers are needed. @Salem: He posted code. My idea was that ...

  1. #16
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    @Tater: The program works as it is. No extra pointers are needed.

    @Salem: He posted code. My idea was that the motivation to learn, if the assignment can't be turned in for marks, is sharply diminished. Within a 24 hour period, "baby steps" couldn't work, in this case.

    Quote Originally Posted by iMalc View Post
    It appears Adak, that you didn't pay any attention to any of the stuff I posted in the last thread on this topic.
    The OP was given a link to the prior dictionary/wordlist thread. He didn't choose to use your logic. I'm not the spokesman for your algorithmic ideas. If you want to promote those concepts, go right ahead. They're not suitable in this case, but you go ahead - please!

    A suggestor was definitely not required this time, and outputting some of the lexicographically nearby words will give ridiculous "suggestions" of words that are not even remotely similar. Not to mention that the code would buffer underrun or overrun.
    The OP can figure out what he wants to add, and what he wants to subtract, or change. I made it plain it wasn't a finished program for all his needs. It was code similar to what he needs, and simple enough that he can readily learn from it. That was the goal.

    That's also an inefficient binary search, and storing all the words in a single array is wasteful.
    It will do fine. If you want to teach him a better binary search, go right ahead. If you want to teach him how to use several smaller array's, go right ahead. He's not ready for most of what you're proposing, but you go right ahead and teach him, Malcolm. I'm much too old to be swayed by your belly-aching.

  2. #17
    Registered User
    Join Date
    Dec 2011
    Posts
    13
    For what it's worth I haven't used the code that was posted at all. It helped me however to understand what code was required for the task. In my program I don't have to give any suggestions for words. I have to compare a text file to a dictionary. If not in the dictionary, post an error message, scan next word. That's it. It's a basic program. The other topic on this program was great and very in depth but was too much for my capabilities. That was evident from my initial post!

    Thank you all for your input I really appreciate it. Also, I wasn't looking for a full solution, just some guidance from experienced coders and I have learned a lot from this thread.

  3. #18
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    Yeah I didn't mean to be the straw that broke the camels back when you were already feeling picked on. My bad.

    I did try to indicate in my last sentence that I wasn't fussed about things. On the whole it's not a bad approach to looking up words.
    My whole "one can do better" attitude there was not so much aimed at the OP, but at others that might be more capable.

    Don't take it too bad that you're "helpful to a fault". It's a nice trait to have.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Spellchecker program
    By vice in forum C Programming
    Replies: 2
    Last Post: 12-05-2005, 05:59 PM
  2. Help needed please.
    By TaktaK in forum C++ Programming
    Replies: 7
    Last Post: 10-04-2005, 10:32 PM
  3. Help Needed !!
    By vodlum in forum C++ Programming
    Replies: 3
    Last Post: 10-03-2005, 03:33 PM
  4. Help needed.
    By hyrule in forum C++ Programming
    Replies: 2
    Last Post: 09-26-2005, 10:51 AM
  5. Creating a spellchecker
    By warny_maelstrom in forum C Programming
    Replies: 14
    Last Post: 03-12-2004, 09:37 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21