<gram>

<gram> (grammatical information) within an entry in a dictionary or a terminological data file, contains grammatical information relating to a term, word, or form. 9.3.2 Grammatical Information
Module dictionaries — 9 Dictionaries
In addition to global attributes att.lexicographic (@expand, @norm, @split, @value, @orig, @location, @mergedIn, @opt)
type classifies the grammatical information given according to some convenient typology — in the case of terminological information, preferably the dictionary of data element types specified in ISO WD 12 620.
Status Optional
Datatype

<rng:ref name="data.enumerated"/>
data.enumerated
Sample values include:
pos
(part of speech) any of the word classes to which a word may be assigned in a given language, based on form, meaning, or a combination of features, e.g. noun, verb, adjective, etc.
gen
(gender) formal classification by which nouns and pronouns, and often accompanying modifiers, are grouped and inflected, or changed in form, so as to control certain syntactic relationships
num
(number) grammatical number, e.g. singular, plural, dual, …
animate
animate or inanimate
proper
proper noun or common noun
Note
A much fuller list of values for the type attribute may be generated from the dictionary of data element types under preparation as ISO TC 37/SC 3/WD 12 620, Computational Aids in Terminology. See ISO 12 620 for fuller details.
Used by
May contain
Declaration

<rng:element name="gram">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.lexicographic.attributes"/>
 <rng:optional>
  <rng:attribute name="type">
   <rng:ref name="data.enumerated"/>
  </rng:attribute>
 </rng:optional>
 <rng:ref name="macro.paraContent"/>
</rng:element>
element gram
{
   att.global.attributes,
   att.lexicographic.attributes,
   attribute type { data.enumerated }?,
   macro.paraContent
}
Example
<entry>
 <form>
  <orth>pamplemousse</orth>
 </form>
 <gramGrp>
  <gram type="pos">noun</gram>
  <gram type="gen">masculine</gram>
 </gramGrp>
</entry>
Note
In terminological data, the gram element usually refers to the most recently specified term or <otherForm> element. In flat term entries, the group and depend attributes may be used to indicate exceptions to this general rule. In dictionaries, the element typically relates to the form or forms with which it is grouped in a form or other grouping element.