Mathematica 9 is now available
 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]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.