Skip to content

generate_classic() returns empty list on occasion. #29

@brenthuisman

Description

@brenthuisman

In applephrase I need a workaround on the following function call:

g.generate_classic([secrets.choice(words)], ncandidates_per_sequence= )[0]["pseudoword"]
(see https://github.com/brenthuisman/applephrase/blob/main/applephrase/main.py#L53)

Only on German and Serb(ocroat)ian Cyrillic does this sometimes return an empty list. I do not know why. The workaround is simple, but I am not sure what triggers the behavior and if it indicates a problem (perhaps with the language file) or misunderstanding on my part, or represents something 'real' (e.g. couldn't possibly generate a pseudoword from this word). applephrase using the first column of the language file as input (words).

If it's something you can dig into, that'd be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions