5.0

5.0 | 2 ratings Rate this file 92 downloads (last 30 days) File Size: 1.81 KB File ID: #5378

spellcheck

by Fahad Al Mahmood

 

30 Jun 2004 (Updated 12 Jul 2004)

Code covered by BSD License  

This function checks the spelling of a word and returns suggestions if misspelled.

Download Now | Watch this File

File Information
Description

[status,suggestions] = spellcheck(text);
 status = spellcheck(text);

 Examples:
[status,suggestions] = spellcheck('Hellow');
status = spellcheck('Emirates');

Acknowledgements
This submission has inspired the following:
dictionary, Text Twist Puzzle Solver
MATLAB release MATLAB 6.5 (R13)
Other requirements Microsoft Word
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
01 Jul 2004 Michael Kleder

Very nice. I can see how this could be useful in excluding user passwords that are in the dictionary, for example.

I would suggest adding an explanation of what the returned status value means. It looks like a status of -1 means that the submitted text is in the dictionary, and a status of 0 means that it is not.

Also, since invoking MS Word's spellchecker under ActiveX requires a good bit of execution time, it would be nice to be able to input and check several words at once while the invokation is open.

15 Jan 2009 Taha Ahi  
Please login to add a comment or rating.
Updates
01 Jul 2004

Multiple words check & status, thanks Michael Kleder!

06 Jul 2004

Solved "multiple spaces in text" bug.

06 Jul 2004

Solved "multiple spaces in text" bug.

12 Jul 2004

Fixed the 'no suggestions' result, thanks Sander Stepanov!

Tag Activity for this File
Tag Applied By Date/Time
strings Fahad Al Mahmood 22 Oct 2008 07:25:51
spelling Fahad Al Mahmood 22 Oct 2008 07:25:51
spell check Fahad Al Mahmood 22 Oct 2008 07:25:51
microsoft word Fahad Al Mahmood 22 Oct 2008 07:25:51
activex Fahad Al Mahmood 22 Oct 2008 07:25:51
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com