Skip to content

Instantly share code, notes, and snippets.

@powerdot
Created May 19, 2021 15:06
Show Gist options
  • Save powerdot/e5ab5ccd74615e367effb748d62c2fcd to your computer and use it in GitHub Desktop.
Save powerdot/e5ab5ccd74615e367effb748d62c2fcd to your computer and use it in GitHub Desktop.
let triggers = [
{
name: "Приветсвие",
words: [{text: ["привет", "хелоу", "здарова", "хай", "прив"]}],
markers: ['hi'],
check_scope: 'sentences'
},
{
name: "Вопрос о времени работы",
words: [
{normalized: ["какой"]},
{normalized: ["время", "час", "часы"]},
{normalized: ["работать"]},
],
markers: ['working_time'],
strict_word_sequence: false,
strict_word_direction: true,
check_scope: 'sentences'
},
{
name: "Вопрос о времени",
words: [
{normalized: ["сколько", 'который']},
{normalized: ["время", "час"]}
],
markers: ['what_time'],
strict_word_sequence: false,
strict_word_direction: true,
check_scope: 'sentences'
},
{
name: "Выключить свет",
words: [
{normalized: ["выключить"]},
{normalized: ['свет', 'лампа', 'лампочка', 'светильник']},
],
markers: ['light_off'],
strict_word_sequence: false,
strict_word_direction: true,
check_scope: 'sentences'
},
{
name: "Включить свет",
words: [
{normalized: ["включить"]},
{normalized: ['свет', 'лампа', 'лампочка', 'светильник']},
],
markers: ['light_on'],
strict_word_sequence: false,
strict_word_direction: true,
check_scope: 'sentences'
},
{
name: "Выключить музыку",
words: [
{normalized: ["выключить", 'остановить', 'пауза']},
{normalized: ['песня', 'музыка', 'колонка', 'трек']},
],
markers: ['music_off'],
strict_word_sequence: false,
strict_word_direction: true,
check_scope: 'sentences'
},
{
name: "Включить музыку",
words: [
{normalized: ["включить", 'запустить', 'возобновить']},
{normalized: ['песня', 'музыка', 'трек']},
],
markers: ['music_on'],
strict_word_sequence: false,
strict_word_direction: true,
check_scope: 'sentences'
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment