Skip to content

Commit bd89f18

Browse files
authored
Merge pull request #1 from lotooo/add_fr_intents
feat: Add intents for French language
2 parents c4928b9 + 3326256 commit bd89f18

File tree

3 files changed

+129
-0
lines changed

3 files changed

+129
-0
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
language: "fr"
2+
intents:
3+
MassPlayMediaAssist:
4+
data:
5+
6+
# TARGET AN AREA
7+
- sentences:
8+
- "<play> <artist> {artist} dans [l'|la |le ]<area> [(en mode) {radio_mode}]"
9+
- "<play> <album> {album} [by <artist> {artist}] dans [l'|le |la ]<area> [(en mode) {radio_mode}]"
10+
- "<play> <track> {track} [by <artist> {artist}] dans [l'|le |la ]<area> [(en mode) {radio_mode}]"
11+
- "<play> <playlist> {playlist} dans [l'|le |la ]<area> [(en mode) {radio_mode}]"
12+
- "<play> <radio_station> {radio} dans [l'|le |la ]<area>"
13+
expansion_rules:
14+
play: "((joue)|(mets))"
15+
artist: "[le |l'|la ](artiste|groupe|chanteur|chanteuse)"
16+
track: "[la ](piste|chanson)"
17+
album: "[l'|la |le ](album|ep|disque|compilation|single)"
18+
playlist: "[la ]playlist"
19+
radio_station: "[la ][station de](radio))"
20+
21+
# TARGET A NAME
22+
- sentences:
23+
- "<play> <artist> {artist} <on> [l'|le |la ]{name} [<player_devices>] [(en mode) {radio_mode}]"
24+
- "<play> <album> {album} [par <artist> {artist}] <on> [l'|le |la ]{name} [<player_devices>] [(en mode) {radio_mode}]"
25+
- "<play> <track> {track} [par <artist> {artist}] <on> [l'[le [la ]{name} [<player_devices>] [(en mode) {radio_mode}]"
26+
- "<play> <playlist> {playlist} <on> [l'| le|la ]{name} [<player_devices>] [(en mode) {radio_mode}]"
27+
- "<play> <radio_station> {radio} <on> [l'|le |la ]{name} [<player_devices>]"
28+
expansion_rules:
29+
play: "((joue)|(mets))"
30+
"on": "(sur|dans)"
31+
player_devices: "((speaker)|([media] player))"
32+
artist: "[le |l'|la ](artiste|groupe|chanteur|chanteuse)"
33+
track: "[la ](piste|chanson)"
34+
album: "[l'|la |le ](album|ep|disque|compilation|single)"
35+
playlist: "[la ]playlist"
36+
radio_station: "[la ][station de](radio))"
37+
requires_context:
38+
domain: "media_player"
39+
40+
# TARGET AN AREA AND A NAME
41+
- sentences:
42+
- "<play> <artist> {artist} dans [l'[le |la ]<area> <on> [l'|le |la ]{name} [<player_devices>] [(en mode) {radio_mode}]"
43+
- "<play> <album> {album} [par <artist> {artist}] dans [l'|le |la ]<area> <on> [l'|le |la ]{name} [<player_devices>] [(en mode) {radio_mode}]"
44+
- "<play> <track> {track} [par <artist> {artist}] dans [l'|le |la ]<area> <on> [l'[le |la ]{name} [<player_devices>][(en mode) {radio_mode}]"
45+
- "<play> <playlist> {playlist} dans [l'|le |la ]<area> <on> [l'|le |la ]{name} [<player_devices>][(en mode) {radio_mode}]"
46+
- "<play> <radio_station> {radio} dans [l'|le |la ]<area> <on> [l'|le |la ]{name} [<player_devices>]"
47+
expansion_rules:
48+
play: "((joue)|(mets))"
49+
player_devices: "((speaker)|([media] player))"
50+
"on": "(sur|dans)"
51+
artist: "[le |l'|la ](artiste|groupe|chanteur|chanteuse)"
52+
track: "[la ](piste|chanson)"
53+
album: "[l'|la|le ](album|ep|disque|compilation|single)"
54+
playlist: "[la ]playlist"
55+
radio_station: "[la ][station de](radio))"
56+
57+
# CONTEXT AWARNESS
58+
- sentences:
59+
- "<play> <artist> {artist} [(en mode) {radio_mode}]"
60+
- "<play> <album> {album} [par <artist> {artist}] [(en mode) {radio_mode}]"
61+
- "<play> <track> {track} [par <artist> {artist}] [(en mode)) {radio_mode}]"
62+
- "<play> <playlist> {playlist} [(en mode) {radio_mode}]"
63+
- "<play> <radio_station> {radio}"
64+
expansion_rules:
65+
play: "((joue)|(mets))"
66+
artist: "[le |l'|la ](artiste|groupe|chanteur|chanteuse)"
67+
track: "[la ](piste|chanson)"
68+
album: "[l'|la|le ](album|ep|disque|compilation|single)"
69+
playlist: "[la ]playlist"
70+
radio_station: "[la ][station de](radio))"
71+
requires_context:
72+
area:
73+
slot: true
74+
lists:
75+
artist:
76+
wildcard: true
77+
album:
78+
wildcard: true
79+
track:
80+
wildcard: true
81+
playlist:
82+
wildcard: true
83+
radio:
84+
wildcard: true
85+
radio_mode:
86+
values:
87+
- "radio"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
language: "en"
2+
intents:
3+
MassPlayMediaOnMediaPlayer:
4+
data:
5+
6+
# TARGET AN AREA
7+
- sentences:
8+
- "<play> {query};in [the ]<area> [((with)|(using)) {radio_mode}]"
9+
expansion_rules:
10+
play: "((play)|(listen to))"
11+
12+
# TARGET A NAME
13+
- sentences:
14+
- "<play> {query};<on> [the ]{name} [<player_devices>] [((with)|(using)) {radio_mode}]"
15+
expansion_rules:
16+
play: "((play)|(listen to))"
17+
player_devices: "((speaker)|([media] player))"
18+
"on": "(on|using)"
19+
requires_context:
20+
domain: "media_player"
21+
22+
# TARGET AN AREA AND A NAME
23+
- sentences:
24+
- "<play> {query};in [the ]<area> <on> [the ]{name} [<player_devices>] [((with)|(using)) {radio_mode}]"
25+
expansion_rules:
26+
play: "((play)|(listen to))"
27+
player_devices: "((speaker)|([media] player))"
28+
"on": "(on|using)"
29+
requires_context:
30+
domain: "media_player"
31+
32+
lists:
33+
query:
34+
wildcard: true
35+
radio_mode:
36+
values:
37+
- "radio mode"

custom_sentences/fr/responses.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: "fr"
2+
responses:
3+
intents:
4+
MassPlayMediaAssist:
5+
default: "C'est parti"

0 commit comments

Comments
 (0)