Вторник, 14 апреля 2015, 14:20 +01:00 от "Marco A.G.Pinto" 
<marcoagpi...@mail.telepac.pt>:
>Hello!
>
>Could someone explain how to add concordance rules for Portuguese?
>
>What I need is to check if a person uses masculine when it was
    feminine (o->a | a->o) and also singular when it was plural
    (o->os | a->as) (and vice versa of course).
>
>This feature has been missing for a long time in Portuguese and I
    hoped I could get it to work on LT 3.0.
>
>Thanks!
>
>Kind regards,
>     >Marco A.G.Pinto
>       ----------------------
>

Hello!
 
I created a similar rules for the Russian language .
Here is one of them :
   <rulegroup default="on" id="SoglasovaniePNN_Verb" name="Согласование 
подлежащего (местоимения) со сказуемым">
            <rule>
                
                <pattern>
                    <!--           Он (PNN:Masc)   VB:Past:Masc   -->
                    <token regexp="yes">он|этот|тот</token>
                    <token postag="VB:Past:.*" postag_regexp="yes"><exception 
postag="VB:Past:Masc"></exception><exception 
regexp="yes">был|была|было</exception><exception negate_pos="yes" 
postag_regexp="yes" postag="VB:Past:.*"></exception></token>
                </pattern>
                <message>Местоимение не согласуется с глаголом по роду: 
<suggestion><match no="1"></match> <match no="2" postag="VB:Past:.*" 
postag_regexp="yes" 
postag_replace="VB:Past:Masc"></match></suggestion></message>
                
<url>http://ru.wikipedia.org/wiki/%D0%9C%D0%B5%D1%81%D1%82%D0%BE%D0%B8%D0%BC%D0%B5%D0%BD%D0%B8%D0%B5_%D0%B2_%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%BE%D0%BC_%D1%8F%D0%B7%D1%8B%D0%BA%D0%B5</url>
                <short>Ошибка в согласовании по роду.</short>
                <example>Во дворе он грелся на солнышке.</example>
                <example correction="он грелся">Во дворе <marker>он 
грелась</marker> на солнышке.</example>
            </rule>

        </rulegroup>



-- 

Yakov Reztsov
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to