AllowLooseGrammar

AllowLooseGrammar

is an option for GrammarRules and related functions that specifies whether grammatical "fluff" should automatically be ignored in applying grammar rules.

Details

  • AllowLooseGrammar->True specifies that simple grammatical transformations such as adding or removing articles should automatically be made.
  • AllowLooseGrammar->True also when possible ignores mismatched bracketing characters.

Examples

Basic Examples  (1)

Deploy a grammar that supports loose parsing:

Apply the grammar to loose inputs:

Apply the grammar but forbid the loose parsing:

Wolfram Research (2015), AllowLooseGrammar, Wolfram Language function, https://reference.wolfram.com/language/ref/AllowLooseGrammar.html.

Text

Wolfram Research (2015), AllowLooseGrammar, Wolfram Language function, https://reference.wolfram.com/language/ref/AllowLooseGrammar.html.

CMS

Wolfram Language. 2015. "AllowLooseGrammar." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AllowLooseGrammar.html.

APA

Wolfram Language. (2015). AllowLooseGrammar. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AllowLooseGrammar.html

BibTeX

@misc{reference.wolfram_2023_allowloosegrammar, author="Wolfram Research", title="{AllowLooseGrammar}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/AllowLooseGrammar.html}", note=[Accessed: 18-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_allowloosegrammar, organization={Wolfram Research}, title={AllowLooseGrammar}, year={2015}, url={https://reference.wolfram.com/language/ref/AllowLooseGrammar.html}, note=[Accessed: 18-March-2024 ]}