Skip to content

Commit

Permalink
[es] fix lock/door confussion (home-assistant#1648)
Browse files Browse the repository at this point in the history
* [es] Fixing lock-door-window confussion in Spanish
  • Loading branch information
davefx authored Nov 16, 2023
1 parent 2a138f0 commit 984557c
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
13 changes: 8 additions & 5 deletions sentences/es/lock_HassGetState.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,29 @@ intents:
domain: lock

- sentences:
- "(está[n]|hay) alg(ún|una)[s] (cierre|cerradura|pestillo|puerta)[s] {lock_states:state}[ <area>]"
- "(está[n]|hay) {lock_states:state} alg(ún|una)[s] (cierre|cerradura|pestillo|puerta)[s][ <area>]"
- "(está[n]|hay) alg(ún|una)[s] (cierre|cerradura|pestillo|cerrojo|llave)[s] {lock_states:state}[ <area>]"
- "(está[n]|hay) {lock_states:state} alg(ún|una)[s] (cierre|cerradura|pestillo|cerrojo|llave)[s][ <area>]"
response: any
slots:
domain: lock

- sentences:
- "están todas l(o|a)s (cierres|cerraduras|pestillos|puertas) {lock_states:state}[ <area>]"
- "están tod(o|a)s l(o|a)s (cierres|cerraduras|pestillos|cerrojos|llaves) {lock_states:state}[ <area>]"
- "están todas l(o|a)s (puertas|ventanas) {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ <area>]"
response: all
slots:
domain: lock

- sentences:
- "(qué|cual[es]) puerta[s] está[n] {lock_states:state}[ <area>]"
- "(qué|cual[es]) (cierre|cerradura|pestillo|cerrojo|llave)[s] está[n] {lock_states:state}[ <area>]"
- "(qué|cual[es]) (puerta|ventana)[s] está[n] {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ <area>]"
response: which
slots:
domain: lock

- sentences:
- "cuánt(o|a)s (puertas|cierres|cerraduras|pestillos) (están|hay) {lock_states:state}[ <area>]"
- "cuánt(o|a)s (cierres|cerraduras|pestillos|cerrojos|llaves) (están|hay) {lock_states:state}[ <area>]"
- "cuánt(o|a)s (puertas|ventanas) (están|hay) {lock_states:state} [con] (cierre|pestillo|cerrojo|cerradura|llave)[ <area>]"
response: how_many
slots:
domain: lock
6 changes: 3 additions & 3 deletions sentences/es/lock_HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ intents:
HassTurnOff:
data:
- sentences:
- "abrir [el|la[s]|los] [(cerradura|cerrojo|candado|llave|cierre|puerta)[s] [de]] <name>[ <area>]"
- "abrir [el|la[s]|los] [(cerradura|cerrojo|candado|llave|cierre)[s] [de]] <name>[ <area>]"
- "quitar [el|la[s]|los] (cerradura|cerrojo|candado|llave|cierre)[s] [en|de] <name>[ <area>]"
requires_context:
domain: lock
response: lock

- sentences:
- "abrir [todas|todos] [los|las] (cierres|cerraduras|cerrojos|candados|llaves|puertas) [de [la[s]] puerta[s]] <area>"
- "quitar [todas|todos] [los|las] (cierres|cerraduras|cerrojos|candados|llaves) [de [la[s]] puerta[s]] <area>"
- "abrir [todas|todos] [los|las] (cierres|cerraduras|cerrojos|candados|llaves) [de [la[s]] (puerta|ventana)[s]] <area>"
- "quitar [todas|todos] [los|las] (cierres|cerraduras|cerrojos|candados|llaves) [de [la[s]] (puerta|venana)[s]] <area>"
slots:
domain: "lock"
name: "all"
Expand Down
5 changes: 3 additions & 2 deletions sentences/es/lock_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ intents:
response: lock

- sentences:
- "cerrar [con (llave|cerrojo|pestillo|cerradura|candado|cierre)] [tod(o|a)s] [los|las] [cerraduras|cerrojos|pestillos|puertas|cierres] <area>"
- "echar [el|la[s]|los] (llave|cerrojo|pestillo|cerradura|candado|cierre)[s] en [tod(o|a)s] [los|las] [cerraduras|cerrojos|pestillos|puertas|cierres] <area>"
- "cerrar [con (llave|cerrojo|pestillo|cerradura|candado|cierre)] [tod(o|a)s] [los|las] [cerraduras|cerrojos|pestillos|cierres] <area>"
- "cerrar con (llave|cerrojo|pestillo|cerradura|candado|cierre) [tod(o|a)s] [los|las] [puertas|ventanas] <area>"
- "echar [el|la[s]|los] (llave|cerrojo|pestillo|cerradura|candado|cierre)[s] en [tod(o|a)s] [los|las] [cerraduras|cerrojos|pestillos|cierres|puertas|ventanas] <area>"
- "echar [tod(o|a)s] [los|las] (llaves|cerrojos|pestillos|cerraduras|candados|cierres) <area>"
slots:
domain: "lock"
Expand Down
2 changes: 1 addition & 1 deletion sentences/es/person_HassGetState.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ intents:
domain: person

- sentences:
- "[<dime> ]<se_encuentra>[n] (todos|todo el mundo) [en] [el|la[s]|los] {zone:state}"
- "[<dime> ]<se_encuentra>[n] (todos|todo el mundo) en [el|la[s]|los] {zone:state}"
response: all
slots:
domain: person
Expand Down
3 changes: 3 additions & 0 deletions tests/es/lock_HassGetState.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ tests:

- sentences:
- "¿Están todas las puertas cerradas con pestillo?"
- "¿Están todos los cerrojos cerrados?"
intent:
name: HassGetState
slots:
Expand All @@ -32,6 +33,7 @@ tests:

- sentences:
- "¿Qué puertas están cerradas con cerrojo?"
- "¿Qué pestillos están cerrados?"
intent:
name: HassGetState
slots:
Expand All @@ -41,6 +43,7 @@ tests:

- sentences:
- "¿cuántos pestillos hay echados?"
- "¿cuántos puertas hay cerradas con llave?"
intent:
name: HassGetState
slots:
Expand Down
1 change: 1 addition & 0 deletions tests/es/lock_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tests:

- sentences:
- "echar todos los pestillos de la cocina"
- "echar la llave en todas las puertas de la cocina"
- "cerrar con cerrojo puertas de la cocina"
- "cerrar con cerradura las puertas de la cocina"
intent:
Expand Down

0 comments on commit 984557c

Please sign in to comment.