Skip to content

Commit

Permalink
added support for shopping list
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrasmussen committed May 25, 2024
1 parent 3906c0e commit 58eee07
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions responses/da/HassShoppingListAddItem.yaml
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"
2 changes: 2 additions & 0 deletions sentences/da/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ lists:
out: "on"
- in: "lukket"
out: "closed"
shopping_list_item:
wildcard: true

expansion_rules:
al: "(alle | alt)"
Expand Down
12 changes: 12 additions & 0 deletions sentences/da/shopping_list_HassShoppingListAddItem.yaml
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>
response: item_added
expansion_rules:
my_list: "[min ][indkøbs]liste[n]"
item: "{shopping_list_item:item}"
16 changes: 16 additions & 0 deletions tests/da/shopping_list_HassShoppingListAddItem.yaml
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

0 comments on commit 58eee07

Please sign in to comment.