I'm loving all these emails but I find it hard to keep track of the different topics. Someone find me a Wiki!
Send Abstract-Wikipedia mailing list submissions to
abstract-wikipedia@lists.wikimedia.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.wikimedia.org/mailman/listinfo/abstract-wikipe dia
or, via email, send a message with subject or body 'help' to
abstract-wikipedia-request@lists.wikimedia.org
You can reach the person managing the list at
abstract-wikipedia-owner@lists.wikimedia.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Abstract-Wikipedia digest..."
Today's Topics:
1. Conjugation and Declension Functions (Adam Sobieski)
------------------------------------------------------------ ----------
Message: 1
Date: Wed, 22 Jul 2020 07:01:08 +0000
From: Adam Sobieski <adamsobieski@hotmail.com>
To: "General public mailing list for the discussion of Abstract
Wikipedia (aka Wikilambda)" <abstract-wikipedia@lists.wikimedia.org >
Subject: [Abstract-wikipedia] Conjugation and Declension Functions
Message-ID:
<CH2PR12MB4184E6AA57F4490441D7B7F6C5790@CH2PR12MB4184.namprd >12.prod.outlook.com
Content-Type: text/plain; charset="windows-1252"
Louis indicated that we should consider modeling and approaches encompassing the features of all languages [1].
Factors that affect verb conjugation are numerous and we can envision a verb conjugation function which gathers these factors together from across languages, a function resembling:
conjugate(language, stem, person, number, gender, tense, aspect, mood, voice, formality, clusivity, transitivity, valency, evidentiality)
The following example utilizes a Context parameter as we haven’t yet discussed global variables. The following example uses a “::” syntax for enums. The following example shows that, with multilingual conjugation and declension functions, we could encapsulate multilingual conjugation and declension in language-specific convenience functions, perhaps resembling:
kick<T>(Context context, Noun agent, Noun patient)
{
join(" ", [
agent,
context.conjugate("en-US", "kick", person::second, agent.number, agent.gender, T, aspect::perfective, mood::indicative, voice::active, context.formality, clusivity::no, transitivity::transitive, valency::transitive, context.evidentiality),
"the",
patient
])
}
and, as expected:
kick<tense::past>(context, Bobby, ball) would produce: “Bobby kicked the ball”.
It appears that there are a multitude of ways to approach implementing NLG-related Wikilambda functions. Conjugation and declension functions could be components of some approaches.
What do you think about conjugation and declension functions?
Best regards,
Adam
[1] https://wals.info/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/abstract-wikipedia/at >tachments/20200722/bd19d947/at tachment-0001.html
------------------------------
Subject: Digest Footer
_______________________________________________
Abstract-Wikipedia mailing list
Abstract-Wikipedia@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/abstract-wikipe dia
------------------------------
End of Abstract-Wikipedia Digest, Vol 1, Issue 71
*************************************************