Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

AllowLooseGrammar

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

DetailsDetails

  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

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]=
Introduced in 2015
(10.1)