On 1.16.0 (561c2e7), find_brightness() doesn't handle Hungarian yet. The first case is the bad one:
| text |
returns |
effect |
| vedd 20%-kal halványabbra ("20% dimmer") |
20 |
light set to 20% |
| kapcsold fel 40 százalékra |
None |
fallback |
| állítsd a fényerejét 40-re |
None |
fallback |
Hungarian says "by an amount" with a suffix on the number (-kal/-kel), so _RELATIVE doesn't catch it.
This fixed all three for me, and I checked it against 11 sentences with English unchanged:
_PERCENT_WORDS += (r"százalék\w*",) # hu
# _RELATIVE, hu:
r"|\d+\s*(?:%|százalék)-?(?:kal|kel)\b"
r"|\b(?:halványabb|világosabb|fényesebb|sötétebb)"
_LEVEL_STEMS["hu"] = ("fény", "halvány", "világos")
On 1.16.0 (
561c2e7),find_brightness()doesn't handle Hungarian yet. The first case is the bad one:Hungarian says "by an amount" with a suffix on the number (
-kal/-kel), so_RELATIVEdoesn't catch it.This fixed all three for me, and I checked it against 11 sentences with English unchanged: