{"id":285691,"date":"2017-04-28T17:15:05","date_gmt":"2017-04-28T13:15:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=285691"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=285691","title":{"rendered":"\u0414\u0435\u0440\u0437\u043a\u0438\u0439 telegram \u0431\u043e\u0442"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/2f0\/ba6\/72c\/2f0ba672c79d458f8419daa903c936f9.png\" align=\"left\" width=\"260\"\/>\u041d\u0435\u0434\u0430\u0432\u043d\u043e, \u0432 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 nlp, \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u0430 \u0438\u0434\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e telegram \u0431\u043e\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044c, \u043a\u0430\u043a \u0434\u0435\u0440\u0437\u043a\u0438\u0439 \u0433\u043e\u043f\u043d\u0438\u043a. \u0422\u043e \u0435\u0441\u0442\u044c:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u043f\u043e \u0441\u043b\u043e\u0432\u0443-\u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0443, \u043a\u0430\u043a &quot;\u0445\u043e\u0447\u0443&quot;, &quot;\u043a\u043e\u0440\u043e\u0447\u0435&quot;, &quot;\u043d\u0435\u0442&quot; \u0438 \u0442.\u0434.;<\/li>\n<li>\u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0434\u0435\u0440\u0437\u043a\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441;<\/li>\n<li>\u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0435\u0446\u0435\u043d\u0437\u0443\u0440\u043d\u043e\u0439 \u0440\u0438\u0444\u043c\u043e\u0439;<\/li>\n<li>\u0435\u0441\u043b\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0438 \u0431\u043e\u0442 \u0432 \u0437\u0430\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0435, \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0437\u043b\u043e\u0439 \u0444\u0440\u0430\u0437\u043e\u0439.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d JavaScript \u0441 ES6 \u0438 Flow. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, Python \u043f\u043e\u0434\u043e\u0448\u0451\u043b \u0431\u044b \u043b\u0443\u0447\u0448\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u0434 \u043d\u0435\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f nlp. \u041d\u043e \u0434\u043b\u044f JS \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/deNULL\/Az.js\">Az.js<\/a>, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Telegram API \u0431\u044b\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d <a href=\"https:\/\/github.com\/yagop\/node-telegram-bot-api\">node-telegram-bot-api<\/a>.<\/p>\n<p>  <\/p>\n<p><strong>TLDR:<\/strong> <a href=\"http:\/\/t.me\/swear_bot\">\u0431\u043e\u0442<\/a>, <a href=\"https:\/\/github.com\/nvbn\/telegram-swear-bot\/\">\u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/a><\/p>\n<p>  <\/p>\n<p><strong>\u041e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e, \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435\u0446\u0435\u043d\u0437\u0443\u0440\u043d\u0430\u044f \u0440\u0435\u0447\u044c \u0438 \u0434\u0435\u0442\u0430\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438!<\/strong><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p><a href=\"https:\/\/github.com\/nvbn\/telegram-swear-bot\/blob\/master\/src\/bot.js\">\u0427\u0430\u0441\u0442\u044c \u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Telegram API<\/a> \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f, \u0438 \u043f\u0440\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0430\u0442\u0435\u0439, \u0438 \u0435\u0451 \u044f \u043e\u043f\u0443\u0449\u0443.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u043d\u0443 \u0441\u0440\u0430\u0437\u0443 \u0441 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0431\u043e\u0442 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043e\u0442\u0432\u0435\u0442. <strong>\u041f\u0435\u0440\u0432\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0438\u0441\u043a\u0430 \u043e\u0442\u0432\u0435\u0442\u0430<\/strong> &ndash; \u0441\u043b\u043e\u0432\u043e-\u0442\u0440\u0438\u0433\u0433\u0435\u0440:<\/p>\n<p>  <\/p>\n<blockquote><p>user: \u0425\u043e\u0447\u0443 \u043d\u043e\u0432\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443!<br \/>  bot: \u0425\u043e\u0442\u0435\u0442\u044c \u043d\u0435\u0432\u0440\u0435\u0434\u043d\u043e! <\/p><\/blockquote>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0430\u0440 <code>[regexp, \u043e\u0442\u0432\u0435\u0442]<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">const TRIGGERS = [   [\/^\u043a[\u043e\u0430]\u0440\u043e\u0447[\u044c\u0435]?$\/i, '\u0423 \u043a\u043e\u0433\u043e \u043a\u043e\u0440\u043e\u0447\u0435, \u0442\u043e\u0442 \u0434\u043e\u043c\u0430 \u0441\u0438\u0434\u0438\u0442!'],   [\/^\u043d\u0435\u0442$\/i, '\u041f\u0438\u0434\u043e\u0440\u0430 \u043e\u0442\u0432\u0435\u0442!'],   [\/^\u0445\u043e(\u0447\u0443|\u0442\u0438\u043c|\u0442\u044f\u0442|\u0442\u0435\u043b|\u0442\u0435\u043b\u0430)$\/i, '\u0425\u043e\u0442\u0435\u0442\u044c \u043d\u0435\u0432\u0440\u0435\u0434\u043d\u043e!'], ];<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0442\u043e\u043c \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0437\u0431\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0441\u043b\u043e\u0432\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">const getWords = (text: string): string[] =&gt;   Az.Tokens(text)     .tokens     .filter(({type}) =&gt; type === Az.Tokens.WORD)     .map(({st, length}) =&gt; text.substr(st, length).toLowerCase());<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0439\u0442\u0438 \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430\u043c \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u044b:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">const getByWordTrigger = function*(text: string): Iterable&lt;string&gt; {   for (const word of getWords(text)) {     for (const [regexp, answer] of constants.TRIGGERS) {       if (word.match(regexp)) {         yield answer;       }     }   } };<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u044b\u0448\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f <strong>\u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u043e\u0438\u0441\u043a\u0430 \u043e\u0442\u0432\u0435\u0442\u0430<\/strong> &ndash; \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0434\u0435\u0440\u0437\u043a\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441:<\/p>\n<p>  <\/p>\n<blockquote><p>user: \u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0443\u0436\u0435 \u043f\u043e\u0439\u0434\u0451\u043c \u0434\u043e\u043c\u043e\u0439?<br \/>  bot: \u0410 \u0442\u0435\u0431\u044f \u0435\u0431\u0451\u0442?<\/p><\/blockquote>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c, \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u043a\u0430 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0438 \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u043e\u0432, \u043a\u0430\u043a &quot;\u043a\u043e\u0433\u0434\u0430&quot;, &quot;\u0433\u0434\u0435&quot; \u0438 \u0442.\u0434.:<\/p>\n<p>  <\/p>\n<pre><code>const getAnswerToQuestion = (text: string): string[] =&gt; {   if (text.trim().endsWith('?')) {     return [constants.ANSWER_TO_QUESTION];   }    const questionWords = getWords(text)     .map((word) =&gt; Az.Morph(word))     .filter((morphs) =&gt; morphs.length &amp;&amp; morphs[0].tag.Ques);    if (questionWords.length) {     return [constants.ANSWER_TO_QUESTION];   } else {     return [];   } };<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u0430, \u0431\u043e\u0442 \u0432\u0435\u0440\u043d\u0451\u0442 \u0437\u0430\u0445\u0430\u0440\u0434\u043a\u043e\u0436\u0435\u043d\u044b\u0439 <code>constants.ANSWER_TO_QUESTION<\/code>.<\/p>\n<p>  <\/p>\n<p><strong>\u0422\u0440\u0435\u0442\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0438\u0441\u043a\u0430 \u043e\u0442\u0432\u0435\u0442\u0430<\/strong> &ndash; \u043e\u0442\u0432\u0435\u0442 \u043d\u0435\u0446\u0435\u043d\u0437\u0443\u0440\u043d\u043e\u0439 \u0440\u0438\u0444\u043c\u043e\u0439. \u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0439:<\/p>\n<p>  <\/p>\n<blockquote><p>user: \u0445\u043e\u0447\u0443 \u0432 \u0410\u0432\u0441\u0442\u0440\u0438\u044e!<br \/>  bot: \u0445\u0443\u044f\u0432\u0441\u0442\u0440\u0438\u044e<br \/>  user: \u0443 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0442\u0440\u0430\u043a\u0442\u043e\u0440<br \/>  bot: \u0445\u0443\u044f\u043a\u0442\u043e\u0440<\/p><\/blockquote>\n<p>\u0412\u043a\u0440\u0430\u0442\u0446\u0435: \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043b\u043e\u0433 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u043f\u0440\u0438\u043b\u0430\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043d\u0430 &quot;\u0445\u0443&quot; \u0438 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0433\u043b\u0430\u0441\u043d\u0443\u044e \u0438\u0437 \u0441\u043b\u043e\u0433\u0430, \u043a\u0430\u043a &quot;\u043e&quot; \u2192 &quot;\u0451&quot;, &quot;\u0430&quot; \u2192 &quot;\u044f&quot; \u0438 \u0442.\u0434.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u043c\u0435\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043b\u043e\u0433 \u0441\u043b\u043e\u0432\u0430. \u042d\u0442\u043e \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">const getFirstSyllable = (word: string): string =&gt; {   const result = [];    let readVowel = false;    for (const letter of word) {     const isVowel = constants.VOWELS.indexOf(letter) !== -1;      if (readVowel &amp;&amp; !isVowel) {       break;     }      if (isVowel) {       readVowel = true;     }      result.push(letter);   }    return result.join(''); };<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0442\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u043b\u043e\u0433 \u043d\u0430 &quot;\u0445\u0443&quot; + \u0433\u043b\u0430\u0441\u043d\u0443\u044e, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">const getRhyme = (word: string): ?string =&gt; {   const morphs = Az.Morph(word);   if (!morphs.length) {     return;   }    const {tag} = morphs[0];   if (!tag.NOUN &amp;&amp; !tag.ADJF) {     return;   }    const syllable = getFirstSyllable(word);   if (!syllable || syllable === word) {     return;   }    const prefix = constants.VOWEL_TO_RHYME[last(syllable)];   const postfix = word.substr(syllable.length);    return `${prefix}${postfix}`; };<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0440\u0438\u0444\u043c\u044b \u0434\u043b\u044f \u0441\u043b\u043e\u0432 \u0438\u0437 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f:<\/p>\n<p>  <\/p>\n<pre><code>const getRhymes = (text: string): string[] =&gt;   getWords(text)     .map(getRhyme)     .filter(Boolean)     .reverse();<\/code><\/pre>\n<p>  <\/p>\n<p><strong>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0438\u0441\u043a\u0430 \u043e\u0442\u0432\u0435\u0442\u0430<\/strong> &ndash; \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0432 \u0437\u0430\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0435 \u0433\u0440\u0443\u0431\u043e\u0439 \u0444\u0440\u0430\u0437\u043e\u0439:<\/p>\n<p>  <\/p>\n<blockquote><p>user: wtf<br \/>  bot: \u0427\u0451?<\/p><\/blockquote>\n<p>\u042d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0432 \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u044e\u0449\u0435\u0439 \u0432\u0441\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<p>  <\/p>\n<pre><code>export default (text: string): string[] =&gt; {   const answers = uniq([     ...getByWordTrigger(text),     ...getAnswerToQuestion(text),     ...getRhymes(text),   ]);    if (answers.length) {     return answers;   } else {     return constants.NO_ANSWERS;   } };<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u044d\u0442\u043e \u0432\u0441\u0451. <a href=\"http:\/\/t.me\/swear_bot\">\u0411\u043e\u0442<\/a>, <a href=\"https:\/\/github.com\/nvbn\/telegram-swear-bot\/\">\u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/a>.<\/p>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/327586\/\"> https:\/\/habrahabr.ru\/post\/327586\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/2f0\/ba6\/72c\/2f0ba672c79d458f8419daa903c936f9.png\" align=\"left\" width=\"260\"\/>\u041d\u0435\u0434\u0430\u0432\u043d\u043e, \u0432 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 nlp, \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u0430 \u0438\u0434\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e telegram \u0431\u043e\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044c, \u043a\u0430\u043a \u0434\u0435\u0440\u0437\u043a\u0438\u0439 \u0433\u043e\u043f\u043d\u0438\u043a. \u0422\u043e \u0435\u0441\u0442\u044c:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u043f\u043e \u0441\u043b\u043e\u0432\u0443-\u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0443, \u043a\u0430\u043a &quot;\u0445\u043e\u0447\u0443&quot;, &quot;\u043a\u043e\u0440\u043e\u0447\u0435&quot;, &quot;\u043d\u0435\u0442&quot; \u0438 \u0442.\u0434.;<\/li>\n<li>\u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0434\u0435\u0440\u0437\u043a\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441;<\/li>\n<li>\u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0435\u0446\u0435\u043d\u0437\u0443\u0440\u043d\u043e\u0439 \u0440\u0438\u0444\u043c\u043e\u0439;<\/li>\n<li>\u0435\u0441\u043b\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0438 \u0431\u043e\u0442 \u0432 \u0437\u0430\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0435, \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0437\u043b\u043e\u0439 \u0444\u0440\u0430\u0437\u043e\u0439.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d JavaScript \u0441 ES6 \u0438 Flow. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, Python \u043f\u043e\u0434\u043e\u0448\u0451\u043b \u0431\u044b \u043b\u0443\u0447\u0448\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u0434 \u043d\u0435\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f nlp. \u041d\u043e \u0434\u043b\u044f JS \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/deNULL\/Az.js\">Az.js<\/a>, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Telegram API \u0431\u044b\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d <a href=\"https:\/\/github.com\/yagop\/node-telegram-bot-api\">node-telegram-bot-api<\/a>.<\/p>\n<p>  <\/p>\n<p><strong>TLDR:<\/strong> <a href=\"http:\/\/t.me\/swear_bot\">\u0431\u043e\u0442<\/a>, <a href=\"https:\/\/github.com\/nvbn\/telegram-swear-bot\/\">\u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/a><\/p>\n<p>  <\/p>\n<p><strong>\u041e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e, \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435\u0446\u0435\u043d\u0437\u0443\u0440\u043d\u0430\u044f \u0440\u0435\u0447\u044c \u0438 \u0434\u0435\u0442\u0430\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438!<\/strong><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-285691","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/285691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=285691"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/285691\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=285691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=285691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=285691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}