public VerbInflection(Verb vrb, AttachedPronounType zamir, string zamirPeyvastehString, PersonType shakhstype, TenseFormationType tenseFormationType, TensePositivity positivity, TensePassivity passivity) { VerbRoot = vrb; ZamirPeyvasteh = zamir; AttachedPronounString = zamirPeyvastehString; Person = shakhstype; TenseForm = tenseFormationType; Positivity = positivity; Passivity = passivity; }
public VerbInflection(Verb vrb, AttachedPronounType zamir,string zamirPeyvastehString, PersonType shakhstype,TenseFormationType tenseFormationType,TensePositivity positivity, TensePassivity passivity) { VerbRoot = vrb; ZamirPeyvasteh = zamir; AttachedPronounString = zamirPeyvastehString; Person = shakhstype; TenseForm = tenseFormationType; Positivity = positivity; Passivity = passivity; }
/// <summary> /// Checks whether two parameter persons are equal or not (it is common in Persian language /// that the verb with a special person type can not have a same attached pronoun person type) /// </summary> /// <param name="zamirPeyvastehType">Attached pronoun type</param> /// <param name="shakhsType">Person type</param> /// <returns>true if persons are equal</returns> private static bool IsEqualPersonPronoun(AttachedPronounType zamirPeyvastehType, PersonType shakhsType) { if (zamirPeyvastehType == AttachedPronounType.SECOND_PERSON_SINGULAR && shakhsType == PersonType.SECOND_PERSON_SINGULAR) { return(true); } if (zamirPeyvastehType == AttachedPronounType.SECOND_PERSON_PLURAL && shakhsType == PersonType.SECOND_PERSON_PLURAL) { return(true); } if (zamirPeyvastehType == AttachedPronounType.FIRST_PERSON_SINGULAR && shakhsType == PersonType.FIRST_PERSON_SINGULAR) { return(true); } if (zamirPeyvastehType == AttachedPronounType.FIRST_PERSON_PLURAL && shakhsType == PersonType.FIRST_PERSON_PLURAL) { return(true); } if (zamirPeyvastehType == AttachedPronounType.SECOND_PERSON_PLURAL && shakhsType == PersonType.SECOND_PERSON_SINGULAR) { return(true); } if (zamirPeyvastehType == AttachedPronounType.SECOND_PERSON_SINGULAR && shakhsType == PersonType.SECOND_PERSON_PLURAL) { return(true); } if (zamirPeyvastehType == AttachedPronounType.FIRST_PERSON_PLURAL && shakhsType == PersonType.FIRST_PERSON_SINGULAR) { return(true); } if (zamirPeyvastehType == AttachedPronounType.FIRST_PERSON_SINGULAR && shakhsType == PersonType.FIRST_PERSON_PLURAL) { return(true); } return(false); }
/// <summary> /// Checks whether two parameter persons are equal or not (it is common in Persian language /// that the verb with a special person type can not have a same attached pronoun person type) /// </summary> /// <param name="zamirPeyvastehType">Attached pronoun type</param> /// <param name="shakhsType">Person type</param> /// <returns>true if persons are equal</returns> private static bool IsEqualPersonPronoun(AttachedPronounType zamirPeyvastehType, PersonType shakhsType) { if (zamirPeyvastehType==AttachedPronounType.SECOND_PERSON_SINGULAR && shakhsType==PersonType.SECOND_PERSON_SINGULAR) return true; if (zamirPeyvastehType==AttachedPronounType.SECOND_PERSON_PLURAL && shakhsType==PersonType.SECOND_PERSON_PLURAL) return true; if (zamirPeyvastehType==AttachedPronounType.FIRST_PERSON_SINGULAR && shakhsType==PersonType.FIRST_PERSON_SINGULAR) return true; if (zamirPeyvastehType==AttachedPronounType.FIRST_PERSON_PLURAL && shakhsType==PersonType.FIRST_PERSON_PLURAL) return true; if (zamirPeyvastehType==AttachedPronounType.SECOND_PERSON_PLURAL && shakhsType==PersonType.SECOND_PERSON_SINGULAR) return true; if (zamirPeyvastehType==AttachedPronounType.SECOND_PERSON_SINGULAR && shakhsType==PersonType.SECOND_PERSON_PLURAL) return true; if (zamirPeyvastehType==AttachedPronounType.FIRST_PERSON_PLURAL && shakhsType==PersonType.FIRST_PERSON_SINGULAR) return true; if (zamirPeyvastehType==AttachedPronounType.FIRST_PERSON_SINGULAR && shakhsType==PersonType.FIRST_PERSON_PLURAL) return true; return false; }