This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Programming / String Manipulation  /
SpellingCorrection

  • SpellingCorrection is an option for StringMatchQ, Names and related functions which specifies whether strings should be considered to match even when a small fraction of the characters in them are different.
  • The default setting SpellingCorrection -> False requires exact matching.
  • ? name effectively uses SpellingCorrection -> True when it cannot find an exact match for name.
  • See the Mathematica book: Section 2.7.3.
  • See also: IgnoreCase.

    Further Examples

    If spelling correction is turned off, then words containing different case letters will not match.

    In[1]:=

    Out[1]=

    With the spelling correction turned on, words that are "close" in spelling, may match.

    In[2]:=

    Out[2]=