dariusk / NaNoGenMo-2014

National Novel Generation Month, 2014 edition.
257 stars 17 forks source link

It's still November somewhere in the world! #150

Open wjt opened 9 years ago

wjt commented 9 years ago

At the last minute I decided to try gender-swapping some old novels. It turned out to be quite tricky to generate a mapping between gendered forms of nouns based on WordNet's hyp{er,o}nym tree, so the output is extremely imperfect. Oh well.

Current status: this rewritten version of A Scandal in Bohemia Code: here

ikarth commented 9 years ago

The bits where it works are really effective. It tends to miss titles and terms of address the most, but in general it gets close.

wjt commented 9 years ago

@ikarth I like some of the mistakes, too. The (accidental) mapping of “friend” to “girlfriend” (the latter's definition includes girl/woman/female, has the former as a hypernym, and the edit distance between them is <= 4) makes for some fun passages.