File Exchange

image thumbnail

spellcheck

version 1.0.0.0 (1.81 KB) by Fahad Al Mahmood
This function checks the spelling of a word and returns suggestions if misspelled.

3 Downloads

Updated 12 Jul 2004

View License

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

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

Cite As

Fahad Al Mahmood (2020). spellcheck (https://www.mathworks.com/matlabcentral/fileexchange/5378-spellcheck), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

zmi zmi

Andrea H

Is it possible to set another language to check? (E.g., German?)

K E

Useful, for example in wordreport

Taha

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.

Updates

1.0.0.0

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

Solved "multiple spaces in text" bug.

Solved "multiple spaces in text" bug.

Multiple words check & status, thanks Michael Kleder!

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: dictionary, Text Twist Puzzle Solver