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:

In[1]:=
Click for copyable input
Out[1]=

Apply the grammar to loose inputs:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=

Apply the grammar but forbid the loose parsing:

In[5]:=
Click for copyable input
Out[5]=
In[6]:=
Click for copyable input
Out[6]=

See Also

GrammarRules  GrammarToken  WordData  IgnoreDiacritics  IgnoreCase

Introduced in 2015
(10.1)