On 6/25/2010 9:30 AM, anu python wrote:
Hi,
I have a text file ,
a.txt
------------------------
this is a lcose button
where u can observer "lcose" is not a valid word.It's typing
mistake.Actual word is "close".
How can i check that each word entered in txt file having correct
meaningful words as per English Dictionary.
Cut and paste your code into anything that does spell checking. For
instance, I am answering this with Mozilla Thunderbird, and 'lcose'
above is underlined in red, though not here because of the single versus
double quote. (So is 'txt', but one just has to ignore intended
non-English words.)
OpenOffice would do just as well, and that lets you add custom
dictionaries. For instance, I have a Python dictionary to which I add
things like 'def' as needed.
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list