private static Vector<String> GetGozashtehSadehInflections(VerbInflection inflection) { Vector<String> lstInflections = new Vector<String>(); StringBuilder verbBuilder = new StringBuilder(); verbBuilder.append(inflection.VerbRoot.Prefix); if (inflection.Positivity == TensePositivity.NEGATIVE) { verbBuilder.append("ن"); } if (inflection.VerbRoot.PastRootVowelStart.equals("A") && inflection.Positivity == TensePositivity.NEGATIVE) { if (!inflection.VerbRoot.PastTenseRoot.startsWith("آ")) verbBuilder.append("ی"); else verbBuilder.append("یا"); verbBuilder.append(inflection.VerbRoot.PastTenseRoot.substring(1)); } else { verbBuilder.append(inflection.VerbRoot.PastTenseRoot); } if (inflection.VerbRoot.PastTenseRoot.endsWith("آ")) { verbBuilder.delete(verbBuilder.length() - 1, verbBuilder.length()); verbBuilder.append("ی"); } else if (inflection.VerbRoot.PastTenseRoot.endsWith("ا") || inflection.VerbRoot.PastTenseRoot.endsWith("و")) { verbBuilder.append("ی"); } if (inflection.Person == PersonType.FIRST_PERSON_PLURAL) verbBuilder.append("یم"); else if (inflection.Person == PersonType.FIRST_PERSON_SINGULAR) verbBuilder.append("م"); else if (inflection.Person == PersonType.SECOND_PERSON_PLURAL) verbBuilder.append("ید"); else if (inflection.Person == PersonType.SECOND_PERSON_SINGULAR) verbBuilder.append("ی"); else if (inflection.Person == PersonType.THIRD_PERSON_PLURAL) verbBuilder.append("ند"); lstInflections.add(AddAttachedPronoun(verbBuilder.toString(), inflection)); return lstInflections; }
private static Vector<String> GetPayehFelInflections(VerbInflection inflection) { Vector<String> lstInflections = new Vector<String>(); if (inflection.Positivity == TensePositivity.POSITIVE) lstInflections.add(inflection.VerbRoot.Prefix + inflection.VerbRoot.PastTenseRoot + "ه"); else if (inflection.Positivity == TensePositivity.NEGATIVE) { if (inflection.VerbRoot.PastRootVowelStart.equals("A") && inflection.Positivity == TensePositivity.NEGATIVE) { StringBuilder verbBuilder = new StringBuilder(); verbBuilder.append(inflection.VerbRoot.Prefix + "ن"); if (!inflection.VerbRoot.PastTenseRoot.startsWith("آ")) verbBuilder.append("ی"); else verbBuilder.append("یا"); verbBuilder.append(inflection.VerbRoot.PastTenseRoot.substring(1)); verbBuilder.append("ه"); lstInflections.add(verbBuilder.toString()); } else { lstInflections.add( inflection.VerbRoot.Prefix + "ن" + inflection.VerbRoot.PastTenseRoot + "ه"); } } return lstInflections; }