# Example Grammar File to Match Months

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE grammars SYSTEM "../published/edk.dtd">

    <grammars version="4.0">
       <include path="winter_names.ecr" type="private"/>
       <grammar name="example">

          <entity name="spring_month" type="private">
             <pattern>[Mm]ar(ch|\.)</pattern>
             <entry headword="April"/>
             <entry headword="april"/>
             <entry headword="Apr"/>
             <entry headword="apr"/>
             <entry headword="Apr."/>
             <entry headword="apr."/>
             <pattern replace="May">[Mm]ay\.?</pattern>
             <entry headword="June">
                <synonym>Jun</synonym>
                <synonym>Jun.</synonym>
                <synonym>june</synonym>
                <synonym>jun</synonym>
                <synonym>jun.</synonym>
             </entry>
          </entity>

          <entity name="summer_month" type="private" case="insensitive">
             <entry headword="June"/>
             <entry headword="July"/>
             <entry headword="August"/>
             <entry headword="September"/>
          </entity>

          <entity name="month" type="public">
             <pattern>(?A^spring_month)</pattern>
             <pattern>(?A:summer_month)</pattern>
             <entry headword="September"/>
             <entry headword="October"/>
             <entry headword="November"/>
             <entry headword="December"/>
             <pattern>(?A^winter_month)</pattern>
             <!-- spelling mistakes -->
             <entry score="0.5" headword="Febuary"/>
          </entity>

       </grammar>
    </grammars>

_FT_HTML5_bannerTitle.htm