Given a string ending in either "er", "ir", or "re" (the "infinitive"), output the full conjugation of the string as a French verb in the seven simple tenses. For each tense (in the order given below), output each subject pronoun in the following order: je, tu, il, elle, nous, vous, ils, elles; followed by a space, the verb conjugated according to that pronoun, and a newline. If the verb begins with a vowel (aeiou
) or h
, je becomes j' and the space is omitted.
In all the examples, I will use the regular verbs exister, invertir, and rendre to demonstrate. French has a great many irregular verbs, which we shall ignore to make the specification and challenge easier.
The tenses
Present tense
Remove the er/ir/re from the infinitive and add the following endings:
- er: j'existe, tu existes, il existe, elle existe, nous existons, vous existez, ils existent, elles existent.
- ir: j'invertis, tu invertis, il invertit, elle invertit, nous invertissons, vous invertissez, ils invertissent.
- re: je rends, tu rends, il rend, elle rend (no endings), nous rendons, vous rendez, ils rendent, elles rendent.
Imperfect
Remove the er/ir/re from the infinitive and add the following endings:
- er and re: j'existais, tu existais, il existait, elle existait, nous existions, vous existiez, ils existaient, elles existaient.
- ir: j'invertissais, tu invertissais, il invertissait, elle invertissait, nous invertissions, vous invertissiez, ils invertissaient.
Simple past
Remove the er/ir/re from the infinitive and add the following endings:
- er: j'existai, tu existas, il exista, elle exista, nous existâmes, vous existâtes, ils existèrent, elles existèrent.
- ir and re: je rendis, tu rendis, il rendit, elle rendit, nous rendîmes, vous rendîtes, ils rendirent, elles rendirent.
Future
For all verbs, add these endings directly to the infinitive (though re verbs drop the e):
- j'invertirai, tu invertiras, il invertira, elle invertira, nous invertirons, vous invertirez, ils invertiront, elles invertiront.
Conditional
For all verbs, add these endings directly to the infinitive (though re verbs drop the e):
- j'invertirais, tu invertirais, il invertirait, elle invertirait, nous invertirions, vous invertiriez, ils invertiraient, elles invertiraient*.
Present subjunctive
Remove the er/ir/re from the infinitive and add the following endings:
- er and re: j'existe, tu existes, il existe, elle existe, nous existions, vous existiez, ils existent, elles existent.
- ir: j'invertisse, tu invertisses, il invertisse, elle invertisse, nous invertissions, vous invertissiez, ils invertissent, elles invertissent.
Imperfect subjunctive
Remove the er/ir/re from the infinitive and add the following endings:
- er: j'existasse, tu existasses, il existât, elle existât, nous existassions, vous existassiez, ils existassent, elles existassent.
- ir and re: je rendisse, tu rendisses, il rendît, elle rendît, nous rendissions, vous rendissiez, ils rendissent, elles rendissent.
Sample output
For an er verb, aller
, your output should be:
j'alle
tu alles
il alle
elle alle
nous allons
vous allez
ils allent
elles allent
j'allais
tu allais
il allait
elle allait
nous allions
vous alliez
ils allaient
elles allaient
j'allai
tu allas
il alla
elle alla
nous allâmes
vous allâtes
ils allèrent
elles allèrent
j'allerai
tu alleras
il allera
elle allera
nous allerons
vous allerez
ils alleront
elles alleront
j'allerais
tu allerais
il allerait
elle allerait
nous allerions
vous alleriez
ils alleraient
elles alleraient
j'alle
tu alles
il alle
elle alle
nous allions
vous alliez
ils allent
elles allent
j'allasse
tu allasses
il allât
elle allât
nous allassions
vous allassiez
ils allassent
elles allassent
For an ir verb, avoir
, your output should be:
j'avois
tu avois
il avoit
elle avoit
nous avoissons
vous avoissez
ils avoissent
elles avoissent
j'avoissais
tu avoissais
il avoissait
elle avoissait
nous avoissions
vous avoissiez
ils avoissaient
elles avoissaient
j'avois
tu avois
il avoit
elle avoit
nous avoîmes
vous avoîtes
ils avoirent
elles avoirent
j'avoirai
tu avoiras
il avoira
elle avoira
nous avoirons
vous avoirez
ils avoiront
elles avoiront
j'avoirais
tu avoirais
il avoirait
elle avoirait
nous avoirions
vous avoiriez
ils avoiraient
elles avoiraient
j'avoisse
tu avoisses
il avoisse
elle avoisse
nous avoissions
vous avoissiez
ils avoissent
elles avoissent
j'avoisse
tu avoisses
il avoît
elle avoît
nous avoissions
vous avoissiez
ils avoissent
elles avoissent
For an re verb, faire
, your output should be:
je fais
tu fais
il fai
elle fai
nous faions
vous faiez
ils faient
elles faient
je faiais
tu faiais
il faiait
elle faiait
nous faiions
vous faiiez
ils faiaient
elles faiaient
je faiis
tu faiis
il faiit
elle faiit
nous faiîmes
vous faiîtes
ils faiirent
elles faiirent
je fairai
tu fairas
il faira
elle faira
nous fairons
vous fairez
ils fairont
elles fairont
je fairais
tu fairais
il fairait
elle fairait
nous fairions
vous fairiez
ils fairaient
elles fairaient
je faie
tu faies
il faie
elle faie
nous faiions
vous faiiez
ils faient
elles faient
je faiisse
tu faiisses
il faiît
elle faiît
nous faiissions
vous faiissiez
ils faiissent
elles faiissent
(These are not the true conjugations of the above verbs. In reality they are highly irregular.)
This is code golf. The shortest submission wins.
manger
,finir
and(entre)prendre
as example should be better, feels like you intentionally took irregular verbs :) \$\endgroup\$(entre)prendre
is irregular as well. So maybeentendre
instead. (But I do agree that the current examples look awful if you happen to know French.) \$\endgroup\$(entre)prendre
was irregullarentendre
is really better \$\endgroup\$