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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove possibility of having dupe words in the job titles #1

Open
jpaulin opened this issue Sep 21, 2017 · 0 comments
Open

remove possibility of having dupe words in the job titles #1

jpaulin opened this issue Sep 21, 2017 · 0 comments

Comments

@jpaulin
Copy link
Owner

jpaulin commented Sep 21, 2017

Now since the generating algo is so simple, it leaves a possibility of producing duplicates of words. Duplication makes the program look kind of stupid, which it certainly isn't.

Solving this issue can be done in either:

  • the generation part, or
  • by adding a pre-filter to the word lists -> ensuring essentially no duplicate words exist in global dictionary

Reproduce:

run
node ./dacjesh.js

for some 10-20 times and observe the produced gitles. You'll see word repetiting.

Condition:

happens only when there are same words existing in a pair
(or many pairs) of the name arrays
. Since each "round" of generating
the next word into the gitle is totally independent of each other,
it's like flipping coin: in our case, any word from the individual array may be used,
regardless of history-so-far.

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

No branches or pull requests

1 participant