Skip to content

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

@jpaulin

Description

@jpaulin

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions