PreprocessingRules
✖
PreprocessingRules
Details

- The rules given by PreprocessingRules are applied to each expression.
- Typical settings are:
-
Automatic an automatic choice of preprocessing None no preprocessing rules explicit set of preprocessing rules - Rules for PreprocessingRules can involve patterns.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (2)Survey of the scope of standard use cases
Specify a default processing rule:

https://wolfram.com/xid/0bc597oamu2lboy-0agdhj

Without a default rule, automatic styling is used:

https://wolfram.com/xid/0bc597oamu2lboy-o03217

Compare with all default styles:

https://wolfram.com/xid/0bc597oamu2lboy-voxt1t

Applications (3)Sample problems that can be solved with this function
Spellcheck strings before displaying them:

https://wolfram.com/xid/0bc597oamu2lboy-ydhc96

Round real numbers to their closest integers:

https://wolfram.com/xid/0bc597oamu2lboy-8im5gi


https://wolfram.com/xid/0bc597oamu2lboy-5u8khr

Create a function that takes the first match in the dictionary given a word stem:

https://wolfram.com/xid/0bc597oamu2lboy-synit4

https://wolfram.com/xid/0bc597oamu2lboy-q1m3mm
Use it to regularize the input of WordCloud:

https://wolfram.com/xid/0bc597oamu2lboy-knzr9t

Modify the function to only return verbs:

https://wolfram.com/xid/0bc597oamu2lboy-r9fz87

https://wolfram.com/xid/0bc597oamu2lboy-dnse3w

Properties & Relations (2)Properties of the function, and connections to other functions
When the preprocessing splits the word into multiple words, weights are propagated to new words:

https://wolfram.com/xid/0bc597oamu2lboy-y8prlr


https://wolfram.com/xid/0bc597oamu2lboy-itkjta


https://wolfram.com/xid/0bc597oamu2lboy-1rmwux

If a word matches more than one pattern, the first match is used:

https://wolfram.com/xid/0bc597oamu2lboy-dyv85k

Wolfram Research (2017), PreprocessingRules, Wolfram Language function, https://reference.wolfram.com/language/ref/PreprocessingRules.html.
Text
Wolfram Research (2017), PreprocessingRules, Wolfram Language function, https://reference.wolfram.com/language/ref/PreprocessingRules.html.
Wolfram Research (2017), PreprocessingRules, Wolfram Language function, https://reference.wolfram.com/language/ref/PreprocessingRules.html.
CMS
Wolfram Language. 2017. "PreprocessingRules." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PreprocessingRules.html.
Wolfram Language. 2017. "PreprocessingRules." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PreprocessingRules.html.
APA
Wolfram Language. (2017). PreprocessingRules. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PreprocessingRules.html
Wolfram Language. (2017). PreprocessingRules. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PreprocessingRules.html
BibTeX
@misc{reference.wolfram_2025_preprocessingrules, author="Wolfram Research", title="{PreprocessingRules}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/PreprocessingRules.html}", note=[Accessed: 08-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_preprocessingrules, organization={Wolfram Research}, title={PreprocessingRules}, year={2017}, url={https://reference.wolfram.com/language/ref/PreprocessingRules.html}, note=[Accessed: 08-July-2025
]}