image thumbnail


version (1.72 KB) by Fahad Al Mahmood
Checks the spelling status of word(s) and returns synonyms if found.


Updated 08 Jul 2004

View License

[status,synonyms] = dictionary(text);
status = dictionary(text);

text: word(s) separated by a single space.
status: returns '1' if word(s) exist in dictionary or '0' otherwise.
synonyms: an array of synonyms of word(s) or otherwise returns a message 'No Synonyms Found!' or 'Incorrect Spelling!'.

[status,synonyms] = dictionary('peddler');
[status,synonyms] = dictionary('walk match ground');
status = dictionary('hysteria');

Cite As

Fahad Al Mahmood (2021). dictionary (, MATLAB Central File Exchange. Retrieved .

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

Inspired by: spellcheck

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!