Jump to content

Dictionary lookup and duplicate word search


Recommended Posts

I am trying to write an AutoIT v3 script that acts similar to the spell check feature in a word processor. If someone has already created such a script, please point me to it. If not, any high-level design suggestions would be appreciated. For example, should I create a dictionary in an array and then read in each word, one at a time, from the file to be checked and compare the word to the array? Or, is there a better way to do this? I would also love any pointers on how to search and remove any duplicate words from a text file - no matter where the words exist within the file (i.e., I'm not jus looking for a way to remove duplicate words that are adjacent to each other). Any advice is greatly appreciated.

Link to comment
Share on other sites

:D:o

[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Link to comment
Share on other sites

:D:o

Thanks for your helpful tips, but they don't seem applicable to what I'm after. I'm not trying to troubleshoot code. I haven't written any code, yet. I was looking for general design guidance on how to write a program that could be used as a spell checker. I've searched the forums and found some a bit of guidance related to this, but nothing that seems to satisfy what I'm trying to do. I was trying to avoid what I see so many people do, which is dive in, try this and try that, get stuck then ask for help, then get people critcize the developer for the general way they are trying to tackle the problem. But, it doesn't seem like anyone has any high-level thoughts, which is fine, on how to do what I'm trying to do so, I guess I'll just, dive in, try this and try that, get stuck, then ask for help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...