/// <summary>
 /// checks whether the attached pronoun is valid or not
 /// </summary>
 /// <returns></returns>
 private bool IsAttachedPronounValid()
 {
     if (TenseForm == TenseFormationType.AMR && (ZamirPeyvasteh == AttachedPronounType.SECOND_PERSON_SINGULAR || ZamirPeyvasteh == AttachedPronounType.SECOND_PERSON_PLURAL || ZamirPeyvasteh == AttachedPronounType.FIRST_PERSON_PLURAL || ZamirPeyvasteh == AttachedPronounType.FIRST_PERSON_SINGULAR))
     {
         return(false);
     }
     if (IsEqualPersonPronoun(ZamirPeyvasteh, Person))
     {
         return(false);
     }
     if (ZamirPeyvasteh == AttachedPronounType.AttachedPronoun_NONE && TenseForm == TenseFormationType.PAYEH_MAFOOLI)
     {
         return(true);
     }
     if (ZamirPeyvasteh == AttachedPronounType.AttachedPronoun_NONE)
     {
         return(true);
     }
     return(VerbRoot.IsZamirPeyvastehValid() && TenseForm != TenseFormationType.PAYEH_MAFOOLI);
 }
Ejemplo n.º 2
0
 private bool IsZamirPeyvastehValid()
 {
     if (TenseForm == TenseFormationType.AMR && (ZamirPeyvasteh == ZamirPeyvastehType.DOVVOMSHAKHS_MOFRAD || ZamirPeyvasteh == ZamirPeyvastehType.DOVVOMSHAKHS_JAM || ZamirPeyvasteh == ZamirPeyvastehType.AVALSHAKHS_JAM || ZamirPeyvasteh == ZamirPeyvastehType.AVALSHAKHS_MOFRAD))
     {
         return(false);
     }
     if (isEqualShaksZamir(ZamirPeyvasteh, Shakhs))
     {
         return(false);
     }
     if (ZamirPeyvasteh == ZamirPeyvastehType.ZamirPeyvasteh_NONE && TenseForm == TenseFormationType.PAYEH_MAFOOLI)
     {
         return(true);
     }
     if (ZamirPeyvasteh == ZamirPeyvastehType.ZamirPeyvasteh_NONE)
     {
         return(true);
     }
     return(VerbStem.IsZamirPeyvastehValid() && TenseForm != TenseFormationType.PAYEH_MAFOOLI);
 }