Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having two wildcards after each other in a sentence doesn't work #2472

Open
salleq opened this issue Nov 6, 2024 · 0 comments
Open

Having two wildcards after each other in a sentence doesn't work #2472

salleq opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@salleq
Copy link
Contributor

salleq commented Nov 6, 2024

I'm trying to translate timer commands to Finnish.

I have this sentence:
{timer_command:conversation_command} <timer_duration> [kuluttua|päästä|jälkeen]

This doesn't go through tests or python3 -m script.intentfest parse --language fi --sentence 'avaa autotallin toinen ovi 5 minuutin päästä'

In English it's done like this:
{timer_command:conversation_command} in <timer_duration>

Also the two "variables" the other way round seems to work at least in English:
in <timer_duration> {timer_command:conversation_command}

This also works in Finnish, but goes a bit "poetic" ...
"jälkeen <timer_duration>, {timer_command:conversation_command}"

However in Finnish I cannot put the word "jälkeen" ("after" in english) like this because it's not proper language:
{timer_command:conversation_command} [kuluttua|päästä|jälkeen] <timer_duration>

Do any other languages have the same issue and is there a way to fix it?
Right now the best I can do is make a workaround like (translated to English):
"command {timer_command:conversation_command} timer <timer_duration>" but that's not intuitive to use.

@salleq salleq added the bug Something isn't working label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant