Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Word in example does not match word listing #32

Open
axtscz opened this issue May 14, 2020 · 1 comment
Open

Word in example does not match word listing #32

axtscz opened this issue May 14, 2020 · 1 comment

Comments

@axtscz
Copy link

axtscz commented May 14, 2020

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=

@turtlesoupy
Copy link
Owner

turtlesoupy commented May 14, 2020

Haha, it does sometimes pluralize in interesting ways. The way I'm doing the example rejection is really naive:

start_title_idx = l_example.index(t_rstrip)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants