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.
In
applephraseI 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).
applephraseusing the first column of the language file as input (words).If it's something you can dig into, that'd be great.