Sign in to follow this  
Followers 0
Kyle Hendrickson

Dictionary lookup and duplicate word search

5 posts in this topic

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.

Share this post


Link to post
Share on other sites




[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

Thanks. I should have clarified, I want the ability to check a file or text string against my own custom dictionary. For example, I'd like the ability to check a document ro string of text to see if all words in the document are in a Klingon dictonary.

Share this post


Link to post
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]

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0