Skip to content

Commit

Permalink
grammatical number: metanorma/metanorma-iso#554
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Nov 27, 2021
1 parent 4623b08 commit d056c32
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grammars/isodoc.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ AbbreviationType = "truncation" | "acronym" | "initialism"

Grammar =
element gender { GrammarGender }*,
element number { GrammarNumber }*,
element isPreposition { xsd:boolean }?,
element isParticiple { xsd:boolean }?,
element isAdjective { xsd:boolean }?,
Expand All @@ -655,6 +656,8 @@ Grammar =
element grammar-value { text }*

GrammarGender = "masculine" | "feminine" | "neuter" | "common"

GrammarNumber = "singular" | "dual" | "plural"

termdomain =
element domain { TextElement+ }
Expand Down
12 changes: 12 additions & 0 deletions grammars/isodoc.rng
Original file line number Diff line number Diff line change
Expand Up @@ -2000,6 +2000,11 @@
<ref name="GrammarGender"/>
</element>
</zeroOrMore>
<zeroOrMore>
<element name="number">
<ref name="GrammarNumber"/>
</element>
</zeroOrMore>
<optional>
<element name="isPreposition">
<data type="boolean"/>
Expand Down Expand Up @@ -2044,6 +2049,13 @@
<value>common</value>
</choice>
</define>
<define name="GrammarNumber">
<choice>
<value>singular</value>
<value>dual</value>
<value>plural</value>
</choice>
</define>
<define name="termdomain">
<element name="domain">
<oneOrMore>
Expand Down

0 comments on commit d056c32

Please sign in to comment.