<?xml version="1.0" encoding="utf-8"?>
<!--
Esperanto Disambiguation Rules for LanguageTool
Copyright (C) 2011-2014 Dominique Pellé
-->
<rules lang="eo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/resource/disambiguation.xsd">
    <rulegroup name="prepozicio + la + -o vorto -> nedirekta objekto" id="NEDIREKTA_OBJEKTO">
        <rule>
            <pattern>
                <token postag="P .*" postag_regexp="yes"/>
                <token>la</token>
                <marker>
                    <token postag="O .*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="X ndo"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="P .*" postag_regexp="yes"/>
                <marker>
                    <token postag="O .*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="X ndo"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="P .*" postag_regexp="yes"/>
                <token postag="[AO] .*" postag_regexp="yes"/>
                <marker>
                    <token postag="[OA] .*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="X ndo"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="P .*" postag_regexp="yes"/>
                <token>la</token>
                <token postag="[AO] .*" postag_regexp="yes"/>
                <marker>
                    <token postag="[OA] .*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="X ndo"/></disambig>
        </rule>
    </rulegroup>
    <rule id="DEM_KRI" name="demandosigno + krisigno">
        <pattern>
            <token>?</token>
            <marker>
                <token>!</token>
            </marker>
        </pattern>
        <disambig action="add"><wd pos="X demkri"/></disambig>
    </rule>
    <rulegroup id="VIVI" name="vivi vivon">
      <rule>
        <pattern>
          <marker><token inflected="yes" regexp="yes">viv(?:e[tg])?i</token></marker>
          <token regexp="yes">viv(?:e[gt])?on</token>
        </pattern>
        <disambig action="replace"><match no="1" postag_regexp="yes" postag="V nt (.*)" postag_replace="V tr $1"/></disambig>
      </rule>
      <rule>
        <pattern>
          <marker><token inflected="yes" regexp="yes">viv(?:e[gt])?i</token></marker>
          <token postag="A akz.*" postag_regexp="yes"/>
          <token regexp="yes">viv(?:e[gt])?on</token>
        </pattern>
        <disambig action="replace"><match no="1" postag_regexp="yes" postag="V nt (.*)" postag_replace="V tr $1"/></disambig>
      </rule>
    </rulegroup>
</rules>
