Conjugate a Latin verb: Difference between revisions

(Replaced Wren translation by Go translation.)
Line 287:
audiunt they hear
</pre>
 
=={{header|jq}}==
{{trans|Wren}}
{{works with|jq}}
'''Works with gojq, the Go implementation of jq'''
<lang jq>def conjugate:
if endswith("are") | not
then "\(.) is not a first conjugation verb." | error
else .[0:-3] as $stem
| if $stem|length == 0 then "Stem cannot be empty." | error
else "Present indicative tense of '\(.)':",
( "o", "as", "at", "amus", "atis", "ant"
| " " + $stem + .),
""
end
end;
 
("amare", "dare")
| conjugate</lang>
{{out}}
As for [[#Wren]].
 
=={{header|Julia}}==
2,445

edits