The conjugations for all Spanish regular verbs can be built by using the three forms for verbs ending in -ar, -er and -ir.
Create a function that takes a verb as string, and returns a string with the six person/number combinations (like in the examples). Watch out for verbs ending in -ir (check the notes). Try programming the construction rather than forming structures with arrays.
espVerb("pasar") ➞ "Yo paso, tú pasas, él pasa, nosotros pasamos, vosotros pasáis, ellos pasan."
espVerb("unir") ➞ "Yo uno, tú unes, él une, nosotros unimos, vosotros unís, ellos unen."
espVerb("correr") ➞ "Yo corro, tú corres, él corre, nosotros corremos, vosotros corréis, ellos corren."
The smallest category of regular Spanish verbs is those that end in -ir. To conjugate them, remove the infinitive ending and then add one of the following verb endings:
| ... | Singular | Plural |
|---|---|---|
| 1st person | yo -o | nosotros -imos |
| 2nd person | tú -es | vosotros -ís |
| 3rd person | él -e | ellos -en |