-
Notifications
You must be signed in to change notification settings - Fork 526
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
[DA] added support for shopping list #2173
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
language: "da" | ||
responses: | ||
intents: | ||
HassShoppingListAddItem: | ||
item_added: "{{ slots.item }} tilføjet" |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,12 @@ | ||||||||||||||||||||
language: "da" | ||||||||||||||||||||
intents: | ||||||||||||||||||||
HassShoppingListAddItem: | ||||||||||||||||||||
data: | ||||||||||||||||||||
- sentences: | ||||||||||||||||||||
- tilføj <item> (til|på) <my_list> | ||||||||||||||||||||
- skriv <item> på <my_list> | ||||||||||||||||||||
- put <item> på <my_list> | ||||||||||||||||||||
Comment on lines
+5
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider adding more Danish variations for better language coverage. While the current patterns are valid, consider adding more natural Danish alternatives:
Also, consider replacing "put" with more commonly used Danish verbs, as "put" is more English-like. - sentences:
- tilføj <item> (til|på) <my_list>
- skriv <item> på <my_list>
- - put <item> på <my_list>
+ - læg <item> på <my_list>
+ - noter <item> på <my_list> 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||
response: item_added | ||||||||||||||||||||
expansion_rules: | ||||||||||||||||||||
my_list: "[min ][indkøbs]liste[n]" | ||||||||||||||||||||
item: "{shopping_list_item:item}" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: da | ||
tests: | ||
- sentences: | ||
- tilføj æbler på min indkøbsliste | ||
- tilføj æbler til min indkøbslisten | ||
- tilføj æbler på indkøbslisten | ||
- tilføj æbler til indkøbslisten | ||
- skriv æbler på min indkøbsliste | ||
- skriv æbler på indkøbslisten | ||
- put æbler på min indkøbsliste | ||
- put æbler på indkøbslisten | ||
intent: | ||
name: HassShoppingListAddItem | ||
slots: | ||
item: "æbler " | ||
response: æbler tilføjet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Consider adding common shopping items for better user experience.
While the wildcard approach provides flexibility, consider enhancing the user experience by adding common shopping items as suggestions. This could help with:
Example enhancement: