this-word-does-not-exist icon indicating copy to clipboard operation
this-word-does-not-exist copied to clipboard

Word in example does not match word listing

Open axtscz opened this issue 5 years ago • 1 comments

Just a quick bug i thought I'd share. In the picture below, the word in the example sentence does not match the word generated:

image

Maybe it's a plural form? In which case that is a job well done 👍

EDIT: Here is the link to that word: https://www.thisworddoesnotexist.com/w/terezi/eyJ3IjogInRlcmV6aSIsICJkIjogInRoZSBmZW1hbGUgZ2VuaXRhbGlhIiwgInAiOiAibm91biIsICJlIjogImJhYmllcyB3aXRoIHRldGVyZXppIn0=.ePYuH6eRP7b7j1N_lFf7O03fPQ220Ydmx0c2vTkOlsM=

axtscz avatar May 14 '20 14:05 axtscz

Haha, it does sometimes pluralize in interesting ways. The way I'm doing the example rejection is really naive: https://github.com/turtlesoupy/this-word-does-not-exist/blob/7b11b616f3b9b6ed75637aec1cd4d17f1e0e083d/title_maker_pro/datasets.py#L482

basically I'm checking if "terezi" is in the example ignoring word boundaries, which it is (with a prefix) in your example. There are better ways of handling it; perhaps I could look for a word boundary on the left side

turtlesoupy avatar May 14 '20 20:05 turtlesoupy