Jump to content

Conjugate a Latin verb: Difference between revisions

→‎{{header|Factor}}: show English meanings as well
(Add Factor)
(→‎{{header|Factor}}: show English meanings as well)
Line 72:
CONSTANT: pronouns {
"I"
"you (singular)"
"he, she, it"
"we"
"you (plural)all"
"they"
}
Line 98:
dup check-input 3 head* endings [ append ] with map ;
 
: conjugate.he/she/it ( str -- newstr )
"s" append dup dup "Presenthe active%s, indicativeshe conjugations%s, ofit %s:\n" printfsprintf ;
pronouns swap conjugate [ " %-16s%s\n" printf ] 2each ;
 
: english ( str -- seq )
"amāre" conjugate. nl
pronouns [ 2 = [ nip he/she/it ] [ " " glue ] if ] with
"dāre" conjugate.</lang>
map-index ;
 
:: conjugate. ( la en -- )
la en "Present active indicative conjugations of %s (%s):\n"
pronounsprintf swapla conjugate en english [ " %-16s10s%s\n" printf ] 2each ;
 
"amāre" "love" conjugate. nl
"dāre" "give" conjugate.</lang>
{{out}}
<pre>
Present active indicative conjugations of amāre (love):
Iamō I amōlove
amās you love
you (singular) amās
amat he loves, she loves, it amatloves
weamāmus we amāmuslove
youamātis (plural) you amātisall love
theyamant they amantlove
 
Present active indicative conjugations of dāre (give):
I I give
dās you give
you (singular) dās
dat he gives, she gives, it datgives
wedāmus we dāmusgive
youdātis (plural) dātisyou all give
theydant they dantgive
</pre>
 
1,821

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.