Skip to content

dictionary word length should be dynamic #28

@agronv

Description

@agronv

I noticed that the word length in a dictionary is restricted to 1000 characters. Is there a reason why the word length is restricted? Wouldn't it be better if we allow the user to decide the word length like so

calculate_entropy(use_dictionary: false, min_word_length: 4, extra_dictionary_words: [], extra_words_limit = EXTRA_WORDS_LIMIT)
      extra_dictionary_words.collect! { |w| w[0...extra_words_limit] }
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions