I wrote a new pronoun engine for my Carmen Sandiego hacking.
-
I wrote a new pronoun engine for my Carmen Sandiego hacking. The way it works is you have a dictionary of people and what pronoun set they use (like ({"sarah":"she/her", "dave":"he/him"}) and then you can pass it a string like this:
"{dave:They} looked in {sarah:their} purse when {they} wasn't looking, but it wasn't there."
and it'll render it out as:
"He looked in her purse when she wasn't looking, but it wasn't there."
-
replied to Foone🏳️⚧️ last edited by
you use the singular they Subject/Object/Possessive adjective/Possessive pronoun /Reflexive and it'll look it up in the internal Pronoun Database to figure out which pronoun set that person uses, and it'll match it.
It also notices how you capitalize it, and matches it.
So "WHAT THE HELL IS {THEY}DOING HERE?" will correctly render as "WHAT THE HELL IS SHE DOING HERE?"It's simplistic and doesn't handle the way people tend to actually use plural they/them pronouns, but it works.
-
replied to Foone🏳️⚧️ last edited by
@foone oooh, i wasn't paying enough attention... Carmen Sandiego hacking?
-
replied to tomasino last edited by [email protected]
@tomasino I'm hacking one of the versions (the 1988 DOS Enhanced Edition) to make it possible to design your own worlds (so you could make "Where in San Francisco is Carmen Sandiego?" or whatever) and the original game has a limited pronoun engine that I gotta replace along the way.
-
replied to Foone🏳️⚧️ last edited by
it's just a python prototype for now because even I am not weird enough to prototype in 16-bit x86 assembly
-
replied to Foone🏳️⚧️ last edited by
@foone how does the parser determine if it's Dave or Sarah who's not looking?
-
replied to Foone🏳️⚧️ last edited by
-
replied to tomasino last edited by
@tomasino I'm decompiling it. I don't really have documentation yet, but I've been doing a live thread of my discoveries:
https://digipres.club/@foone/113757335795249143 -
replied to Foone🏳️⚧️ last edited by
@foone Does it assume singular (him/her) or does it select the appropriate (wasn't/weren't) if Dave identifies as (they/them)?
Way way back in the day I programmed a Mad Libs sort of game and it linguistically kicked my ass. Learned a ton about natural language and peculiarities of English from that - it's a good exercise if you've never tried it (I mean, clearly _you_ have but not everyone has. Grammar is complex; QED I guess.)