'I', 'You', 'He', 'We', 'You (pl.)', 'They'); $question = $persons[$person]." ______."; // if ($person==3) $question .= eng3sgVerb($verb); // else $question .= $verb; // $question .= ". ".$persons[$q_person]." ______."; return $question; } function eng3sgVerb($verb) { $words = explode(' ', $verb); // if there is a preposition after the verb $vowels = 'aeiou'; $len = strlen($words[0]); if ($words[0]=='be') $verbform = 'is'; elseif (substr($words[0], $len-1)=='y') { if (strpos($vowels, substr($words[0], $len-2, 1)>-1)) { $verbform = substr($words[0], 0, $len-1)."ies"; // deny -> denies } } if (empty($verbform)) $verbform = $words[0]."s"; if (count($words)>1) { // if there is a preposition after the verb for ($i=1; $i Present Imperative Test \n

Tenses

\n"; print "

You have answered all questions correctly. Try to conjugate another verb.\n"; exit("

Back to the Persian Tests"); } print "\n"; } else { print "\n"; } ?>

Tenses

Change the verb from the Infinitive to the Present Imperative

"> Change 'to ".$engVerb."' (".($isPersScript?$verbs[$i-1]['pers']:$verbs[$i-1]['trans']).") to '".strtoupper(substr($engVerb, 0, 1)).substr($engVerb, 1)."!'"; $tense = ($answers[$i-1]==0)?11:9; print ""; $tense = ($answers[$i-1]==1)?11:9; print ""; $tense = ($answers[$i-1]==2)?11:9; print "
".Conjugate($pastStem, $presStem, $presStemTrans, $tense, $questions[$i-1][0])."
".Conjugate($pastStem, $presStem, $presStemTrans, $tense, $questions[$i-1][1])."
".Conjugate($pastStem, $presStem, $presStemTrans, $tense, $questions[$i-1][2])."
"; } print "

"; ?>


Persian Verb Conjugator

Back to the Persian Tests