{"id":6651,"date":"2018-06-13T15:08:23","date_gmt":"2018-06-13T12:08:23","guid":{"rendered":"https:\/\/ssrlab.by\/?p=6651"},"modified":"2020-12-15T12:50:46","modified_gmt":"2020-12-15T09:50:46","slug":"vyznachenne-movy","status":"publish","type":"post","link":"https:\/\/ssrlab.by\/en\/6651","title":{"rendered":"Language Identifier"},"content":{"rendered":"<p>Language Identifier\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-8065\" src=\"https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/vyznachenne-movy-tekstu-1.png\" alt=\"\" width=\"1197\" height=\"401\" srcset=\"https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/vyznachenne-movy-tekstu-1.png 1197w, https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/vyznachenne-movy-tekstu-1-300x101.png 300w, https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/vyznachenne-movy-tekstu-1-1024x343.png 1024w, https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/vyznachenne-movy-tekstu-1-768x257.png 768w\" sizes=\"(max-width: 1197px) 100vw, 1197px\" \/><\/a><\/span><\/p>\n<p class=\"western\" align=\"center\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u041c\u0430\u043b\u044e\u043d\u0430\u043a 1 \u2013 \u0413\u0440\u0430\u0444\u0456\u0447\u043d\u044b \u0456\u043d\u0442\u044d\u0440\u0444\u0435\u0439\u0441 \u0441\u044d\u0440\u0432\u0456\u0441\u0430 \u00ab\u0412\u044b\u0437\u043d\u0430\u0447\u044d\u043d\u043d\u0435 \u043c\u043e\u0432\u044b \u0442\u044d\u043a\u0441\u0442\u0443\u00bb<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u0406\u043d\u0442\u044d\u0440\u0444\u0435\u0439\u0441 \u043c\u0430\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u044b\u044f \u0432\u043e\u0431\u043b\u0430\u0441\u0446\u0456:<\/span><\/span><\/p>\n<ul>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u0412\u044b\u043f\u0430\u0434\u0430\u043b\u044c\u043d\u0430\u0435 \u043c\u0435\u043d\u044e \u0434\u043b\u044f \u0432\u044b\u0431\u0430\u0440\u0443 \u043f\u0440\u044b\u043a\u043b\u0430\u0434\u0443 \u0442\u044d\u043a\u0441\u0442\u0443 \u043d\u0430 \u0430\u0434\u043d\u043e\u0439 \u0437 \u043c\u043e\u045e;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u041f\u043e\u043b\u0435 \u045e\u0432\u043e\u0434\u0443 \u0442\u044d\u043a\u0441\u0442\u0443 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u0430\u0437\u043d\u0430\u0432\u0430\u043d\u043d\u044f. \u041f\u043e\u043b\u0435 \u0437\u0430\u0431\u044f\u0441\u043f\u0435\u0447\u0430\u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0456 \u00ab\u0410\u0431\u043d\u0430\u0432\u0456\u0446\u044c\u00bb (\u0437\u0430\u043f\u0430\u045e\u043d\u0435\u043d\u043d\u0435 \u0437\u0433\u043e\u0434\u043d\u0430 \u0437 \u0432\u044b\u0431\u0440\u0430\u043d\u044b\u043c \u043f\u0443\u043d\u043a\u0442\u0430\u043c \u0432\u044b\u043f\u0430\u0434\u0430\u043b\u044c\u043d\u0430\u0433\u0430 \u043c\u0435\u043d\u044e) \u0456 \u00ab\u0410\u0447\u044b\u0441\u0446\u0456\u0446\u044c\u00bb (\u0432\u044b\u0434\u0430\u043b\u0435\u043d\u043d\u0435 \u045e\u0441\u0456\u0445 \u0434\u0430\u0434\u0437\u0435\u043d\u044b\u0445);<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u041a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0412\u044b\u0437\u043d\u0430\u0447\u044b\u0446\u044c \u043c\u043e\u0432\u0443!\u00bb, \u044f\u043a\u0430\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435 \u0430\u043f\u0440\u0430\u0446\u043e\u045e\u043a\u0443 \u0456 \u0434\u0430\u0437\u0432\u0430\u043b\u044f\u0435 \u0430\u0442\u0440\u044b\u043c\u0430\u0446\u044c \u0432\u044b\u043d\u0456\u043a.<\/span><\/span><\/li>\n<\/ul>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u041f\u0430\u0441\u043b\u044f \u043d\u0430\u0446\u0456\u0441\u043a\u0430\u043d\u043d\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u0412\u044b\u0437\u043d\u0430\u0447\u044b\u0446\u044c \u043c\u043e\u0432\u0443!\u00bb \u0443\u043d\u0456\u0437\u0435 \u044d\u043a\u0440\u0430\u043d\u0430 \u0437\u2019\u044f\u045e\u043b\u044f\u0435\u0446\u0446\u0430 \u043f\u043e\u043b\u0435 \u0432\u044b\u0434\u0430\u0447\u044b \u0432\u044b\u043d\u0456\u043a\u0430\u045e \u0430\u043f\u0440\u0430\u0446\u043e\u045e\u043a\u0456.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\"><b>\u041a\u0430\u0440\u044b\u0441\u0442\u0430\u043b\u044c\u043d\u0456\u0446\u043a\u0456\u044f \u0441\u0446\u044d\u043d\u0430\u0440\u044b\u0456 \u043f\u0440\u0430\u0446\u044b \u0437 \u0441\u044d\u0440\u0432\u0456\u0441\u0430\u043c<\/b><\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\"><u>\u0421\u0446\u044d\u043d\u0430\u0440\u044b\u0439 1. \u0412\u044b\u0437\u043d\u0430\u0447\u044d\u043d\u043d\u0435 \u043c\u043e\u0432\u044b \u0442\u044d\u0441\u0442\u0430\u0432\u0430\u0433\u0430 \u0442\u044d\u043a\u0441\u0442\u0443<\/u><\/span><\/span><\/p>\n<ol>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u0412\u044b\u0431\u0440\u0430\u0446\u044c \u0442\u044d\u0441\u0442\u0430\u0432\u044b \u0442\u044d\u043a\u0441\u0442 \u0437 \u0434\u0430\u043f\u0430\u043c\u043e\u0433\u0430\u0439 \u0432\u044b\u043f\u0430\u0434\u0430\u043b\u044c\u043d\u0430\u0433\u0430 \u043c\u0435\u043d\u044e. \u0423 \u0432\u044b\u043f\u0430\u0434\u043a\u0443 \u043d\u0435\u043f\u0430\u0436\u0430\u0434\u0430\u043d\u0430\u0433\u0430 \u0437\u043c\u044f\u043d\u0435\u043d\u043d\u044f \u0437\u043c\u0435\u0441\u0442\u0443 \u0442\u044d\u043a\u0441\u0442\u0430\u0432\u0430\u0433\u0430 \u043f\u043e\u043b\u044f \u043d\u0430\u0446\u0456\u0441\u043d\u0443\u0446\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u0410\u0431\u043d\u0430\u0432\u0456\u0446\u044c\u00bb.<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u041d\u0430\u0446\u0456\u0441\u043d\u0443\u0446\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u0412\u044b\u0437\u043d\u0430\u0447\u044b\u0446\u044c \u043c\u043e\u0432\u0443!\u00bb.<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u0410\u0442\u0440\u044b\u043c\u0430\u0446\u044c \u0432\u044b\u043d\u0456\u043a (\u043d\u0430\u0437\u0432\u0443 \u0432\u044b\u0437\u043d\u0430\u0447\u0430\u043d\u0430\u0439 \u043c\u043e\u0432\u044b) \u0443 \u043f\u043e\u043b\u0456 \u0432\u044b\u0434\u0430\u0447\u044b \u0432\u044b\u043d\u0456\u043a\u0430\u045e.<\/span><\/span><\/li>\n<\/ol>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\"><u>\u0421\u0446\u044d\u043d\u0430\u0440\u044b\u0439 2. \u0412\u044b\u0437\u043d\u0430\u0447\u044d\u043d\u043d\u0435 \u043c\u043e\u0432\u044b \u043a\u0430\u0440\u044b\u0441\u0442\u0430\u043b\u044c\u043d\u0456\u0446\u043a\u0430\u0433\u0430 \u0442\u044d\u043a\u0441\u0442\u0443<\/u><\/span><\/span><\/p>\n<ol>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u041d\u0430\u0446\u0456\u0441\u043d\u0443\u0446\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u0410\u0447\u044b\u0441\u0446\u0456\u0446\u044c\u00bb \u0434\u043b\u044f \u0430\u0447\u044b\u0441\u0442\u043a\u0456 \u043f\u043e\u043b\u044f \u045e\u0432\u043e\u0434\u0443 \u0430\u043b\u044c\u0431\u043e \u0430\u0447\u044b\u0441\u0446\u0456\u0446\u044c \u043f\u043e\u043b\u0435 \u045e\u0432\u043e\u0434\u0443 \u045e\u0440\u0443\u0447\u043d\u0443\u044e.<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u0423\u0432\u0435\u0441\u0446\u0456 \u0442\u044d\u043a\u0441\u0442 \u0443 \u043f\u043e\u043b\u0435 \u045e\u0432\u043e\u0434\u0443.<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u041d\u0430\u0446\u0456\u0441\u043d\u0443\u0446\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u0412\u044b\u0437\u043d\u0430\u0447\u044b\u0446\u044c \u043c\u043e\u0432\u0443!\u00bb.<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u0410\u0442\u0440\u044b\u043c\u0430\u0446\u044c \u0432\u044b\u043d\u0456\u043a (\u043d\u0430\u0437\u0432\u0443 \u0432\u044b\u0437\u043d\u0430\u0447\u0430\u043d\u0430\u0439 \u043c\u043e\u0432\u044b) \u0443 \u043f\u043e\u043b\u0456 \u0432\u044b\u0434\u0430\u0447\u044b \u0432\u044b\u043d\u0456\u043a\u0430\u045e.<\/span><\/span><\/li>\n<\/ol>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u041c\u0430\u0433\u0447\u044b\u043c\u044b \u0432\u044b\u043d\u0456\u043a \u043f\u0440\u0430\u0446\u044b \u0441\u044d\u0440\u0432\u0456\u0441\u0430 \u0437\u0433\u043e\u0434\u043d\u0430 \u0437 \u043f\u0440\u0430\u043f\u0430\u043d\u0430\u0432\u0430\u043d\u044b\u043c\u0456 \u0441\u0446\u044d\u043d\u0430\u0440\u044b\u044f\u043c\u0456 \u043f\u0440\u0430\u0434\u0441\u0442\u0430\u045e\u043b\u0435\u043d\u044b \u043d\u0430 \u043c\u0430\u043b\u044e\u043d\u043a\u0443 2.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><a href=\"https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/vyznachenne-movy-tekstu-2.png\" class=\"grouped_elements\" rel=\"tc-fancybox-group6651\" title=\"Language Identifier\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-8066\" src=\"https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/vyznachenne-movy-tekstu-2.png\" alt=\"\" width=\"1190\" height=\"123\" srcset=\"https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/vyznachenne-movy-tekstu-2.png 1190w, https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/vyznachenne-movy-tekstu-2-300x31.png 300w, https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/vyznachenne-movy-tekstu-2-1024x106.png 1024w, https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/vyznachenne-movy-tekstu-2-768x79.png 768w\" sizes=\"(max-width: 1190px) 100vw, 1190px\" \/><\/a><\/span><\/p>\n<p class=\"western\" align=\"center\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u041c\u0430\u043b\u044e\u043d\u0430\u043a 2 \u2013 \u0412\u044b\u043d\u0456\u043a \u043f\u0440\u0430\u0446\u044b \u0441\u044d\u0440\u0432\u0456\u0441\u0430 \u00ab\u0412\u044b\u0437\u043d\u0430\u0447\u044d\u043d\u043d\u0435 \u043c\u043e\u0432\u044b \u0442\u044d\u043a\u0441\u0442\u0443\u00bb<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\"><b>\u0414\u043e\u0441\u0442\u0443\u043f \u0434\u0430 \u0441\u044d\u0440\u0432\u0456\u0441\u0430 \u043f\u0440\u0430\u0437 <\/b><\/span><span lang=\"en-US\"><b>API<\/b><\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0443 \u0434\u0430 \u0441\u044d\u0440\u0432\u0456\u0441\u0430 \u00ab\u0412\u044b\u0437\u043d\u0430\u0447\u044d\u043d\u043d\u0435 \u043c\u043e\u0432\u044b \u0442\u044d\u043a\u0441\u0442\u0443\u00bb \u043f\u0440\u0430\u0437 <\/span><span lang=\"en-US\">API<\/span><span lang=\"be-BY\"> \u043d\u0435\u0430\u0431\u0445\u043e\u0434\u043d\u0430 \u0430\u0434\u043f\u0440\u0430\u0432\u0456\u0446\u044c <\/span><span lang=\"en-US\">AJAX<\/span><span lang=\"be-BY\">-\u0437\u0430\u043f\u044b\u0442 \u0442\u044b\u043f\u0443 <\/span><span lang=\"en-US\">POST<\/span><span lang=\"be-BY\"> \u043d\u0430 \u0430\u0434\u0440\u0430\u0441 <\/span><a href=\"https:\/\/corpus.by\/LanguageIdentifier\/api.php\"><span style=\"color: #0563c1;\"><u>https<\/u><\/span><span style=\"color: #0563c1;\"><u><span lang=\"be-BY\">:\/\/<\/span><\/u><\/span><span style=\"color: #0563c1;\"><u>corpus<\/u><\/span><span style=\"color: #0563c1;\"><u><span lang=\"be-BY\">.<\/span><\/u><\/span><span style=\"color: #0563c1;\"><u>by<\/u><\/span><span style=\"color: #0563c1;\"><u><span lang=\"be-BY\">\/<\/span><\/u><\/span><span style=\"color: #0563c1;\"><u>LanguageIdentifier<\/u><\/span><span style=\"color: #0563c1;\"><u><span lang=\"be-BY\">\/<\/span><\/u><\/span><span style=\"color: #0563c1;\"><u>api<\/u><\/span><span style=\"color: #0563c1;\"><u><span lang=\"be-BY\">.<\/span><\/u><\/span><span style=\"color: #0563c1;\"><u>php<\/u><\/span><\/a><span lang=\"be-BY\">. \u041f\u0440\u0430\u0437 \u043c\u0430\u0441\u0456\u045e <\/span><em><strong><span lang=\"en-US\">data<\/span><\/strong><\/em><span lang=\"be-BY\"> \u043f\u0435\u0440\u0430\u0434\u0430\u044e\u0446\u0446\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u044b\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/span><\/span><\/p>\n<ul>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><em><strong><span lang=\"en-US\">text<\/span><\/strong><\/em> \u2013 <span lang=\"be-BY\">\u0430\u0434\u0432\u043e\u043b\u044c\u043d\u044b \u045e\u0432\u0430\u0445\u043e\u0434\u043d\u044b \u0442\u044d\u043a\u0441\u0442 \u043f\u0430\u043c\u0435\u0440\u0430\u043c \u0430\u0434 80 \u0441\u0456\u043c\u0432\u0430\u043b\u0430\u045e. <\/span><\/span><\/li>\n<\/ul>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u041f\u0440\u044b\u043a\u043b\u0430\u0434 <\/span><span lang=\"en-US\">AJAX<\/span><span lang=\"be-BY\">-\u0437\u0430\u043f\u044b\u0442\u0443:<\/span><\/span><\/p>\n<blockquote>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\">$.<span lang=\"en-US\">ajax<\/span>({<\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">type<\/span>: \u201c<span lang=\"en-US\">POST<\/span>\u201d,<\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">url: \u201chttps:\/\/corpus.by\/LanguageIdentifier\/api.php\u201d,<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">data:{<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\">\u201c<span lang=\"en-US\">text\u201d: \u201cHad I the heavens\u2019 embroidered cloths,<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Enwrought with golden and silver light,<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The blue and the dim and the dark cloths<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Of night and light and the half-light,<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">I would spread the cloths under your feet:<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">But I, being poor, have only my dreams;<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">I have spread my dreams under your feet;<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Tread softly because you tread on my dreams.\u201d<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">},<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">success: function(msg){ },<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">error: function() { }<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\">});<\/span><\/p>\n<\/blockquote>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043d\u0435 <\/span><span lang=\"en-US\">JSON<\/span><span lang=\"be-BY\">-\u043c\u0430\u0441\u0456\u045e \u0437 \u0443\u0432\u0430\u0445\u043e\u0434\u043d\u044b\u043c \u0442\u044d\u043a\u0441\u0442\u0430\u043c (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <\/span><em><strong><span lang=\"en-US\">text<\/span><\/strong><\/em><span lang=\"be-BY\">) \u0456 \u043a\u043e\u0434\u0430\u043c \u0432\u044b\u0437\u043d\u0430\u0447\u0430\u043d\u0430\u0439 \u043c\u043e\u0432\u044b (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <\/span><em><strong><span lang=\"en-US\">result<\/span><\/strong><\/em>).<span lang=\"be-BY\"> \u041d\u0430\u043f\u0440\u044b\u043a\u043b\u0430\u0434, \u043f\u0430\u0432\u043e\u0434\u043b\u0435 \u043f\u0440\u044b\u0432\u0435\u0434\u0437\u0435\u043d\u0430\u0433\u0430 \u0432\u044b\u0448\u044d\u0439 <\/span><span lang=\"en-US\">AJAX<\/span><span lang=\"be-BY\">-\u0437\u0430\u043f\u044b\u0442\u0443 \u0431\u0443\u0434\u0437\u0435 \u0441\u0444\u0430\u0440\u043c\u0456\u0440\u0430\u0432\u0430\u043d\u044b \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u044b \u0430\u0434\u043a\u0430\u0437:<\/span><\/span><\/p>\n<blockquote>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">[<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">{<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\">\u201c<span lang=\"en-US\">text\u201d: \u201cHad I the heavens\u2019 embroidered cloths,<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Enwrought with golden and silver light,<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The blue and the dim and the dark cloths<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Of night and light and the half-light,<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">I would spread the cloths under your feet:<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">But I, being poor, have only my dreams;<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">I have spread my dreams under your feet;<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Tread softly because you tread on my dreams.\u201d,<\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\">\u201cresult\u201d: \u201cen\u201d<\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\">}<\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\">]<\/span><\/p>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\"><b>\u0421\u043f\u0430\u0441\u044b\u043b\u043a\u0456 \u043d\u0430 \u043a\u0440\u044b\u043d\u0456\u0446\u044b<\/b><\/span><\/span><\/p>\n<p class=\"western\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"be-BY\">\u0421\u0442\u0430\u0440\u043e\u043d\u043a\u0430 \u0441\u044d\u0440\u0432\u0456\u0441\u0430<\/span> \u2013 <span style=\"color: #0563c1;\"><u><a href=\"https:\/\/corpus.by\/LanguageIdentifier\/\">https:\/\/corpus.by\/LanguageIdentifier\/<\/a><\/u><\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The service <a href=\"https:\/\/corpus.by\/LanguageIdentifier\/?lang=en\"><strong>\u00abLanguage Identifier\u00bb<\/strong><\/a> is designed for identification of the language of the arbitrary text submitted to the input. At the moment, the service recognizes 5 languages: Belarusian, Russian, Ukrainian, English and German.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><b>Basic terms and concepts<\/b><\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><a href=\"https:\/\/corpus.by\/LanguageIdentifier\/?lang=en\"><strong>\u00abLanguage Identifier\u00bb<\/strong><\/a> (or language guessing) \u2013 a problem related to the field of natural language text processing, which consists in determining which language the content is presented in. In the framework of technologies using computational approaches, this problem is considered as a special case of text categorization and is solved by various statistical methods.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><b>Practical value<\/b><\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The problem of preliminary automatic determination of the text language is faced by many modern applications that process and re-process text \u2013 for example, machine translation systems, various parsing programs and speech synthesis systems. Correct recognition of at least the main language significantly saves the resources of such systems, improves their performance, and corrects the operation of algorithms.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The solution of the problem of text language identifying is high-demand on the Internet. In particular, this concerns the identification of the user&#8217;s language, since such identification, along with geolocation technology, allows to fine-tune the site or application to the user&#8217;s needs, to make the content as clear and accessible as possible. Our service has access via the API, which makes it a good helper for the web developer.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><b>Service features<\/b><\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The text language is identified by the service using the statistical method and the rule application method. The priority of statistics over rules or rules over statistics is determined by the position of a special toggle switch variable. The ability to change the position of this toggle switch is currently hidden from the user, however, if necessary, it can always be used by the developer. The sensitivity threshold of the algorithm, the minimum and maximum number of characters of the text to be processed can be just as easily changed (to ensure performance, at the moment the last two parameters are 80 and 1680 respectively).<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The plans for the improvement of the service include the ability to define several languages of multilingual text and the generation of statistics on the use of each individual language, the expansion of the language palette, using of new identification rules.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><b>Service operation algorithm<\/b><\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><i><u>Basic algorithm<\/u><\/i><\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Algorithm input data:<\/span><\/span><\/p>\n<ul>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">User text input, Text;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Minimum text input length, MinLength. Equals 80 characters;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Maximum text input length, MaxLength. Equals 1680 characters;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Toggle switch variable, which is responsible for using an additional system of rules and exceptions, UseRules. Equals false;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Toggle switch variable, which is responsible for applying only rules in the text processing (without statistics), UseRulesOnly. Equals false;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Toggle switch variable, which is responsible for the priority of rules over statistics, UseRulesPriory. Equals true.<\/span><\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The beginning of the algorithm.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 1. Checking the condition Text = <\/span><span lang=\"en-US\">\u2205<\/span><span lang=\"en-US\">. If the condition is true, end the algorithm with the result \u00abfalse\u00bb.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.1. Removing initial and last spaces from Text, determining the encoding of the text.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.2. If the length of the Text is more than MaxLength, remove from Text all the characters following the character with the MaxLength number. Otherwise, if the length of the Text is less than MinLength, end the algorithm with the result \u00abfalse\u00bb.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.3. Convert all Text characters to UTF-8 encoding characters and cast them to lowercase.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 3.1. If UseRulesOnly = true, apply the function of language identification according to the rules to Text, record the result of the function work to the Res variable, issue the value of the Res variable to the user and finish the algorithm. Otherwise, go to the next step.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 3.2. Apply the function of statistical language identification to Text, record the result of the function work to the variable Res.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 3.3. If UseRules = true, complete the following steps of the algorithm. Otherwise, issue the value of the variable Res to the user and finish the algorithm.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 3.4. Apply the function of language identification according to the rules to Text, record the result of the function work to the ResRules variable.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 3.5 If UseRulesPriory = true, issue the value of the ResRules variable to the user and finish the algorithm. Otherwise, issue the value of the variable Res to the user and finish the algorithm.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The end of the algorithm.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><i><u>Function of language identification according to the rules<\/u><\/i><\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Algorithm input data:<\/span><\/span><\/p>\n<ul>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">User text input processed in steps 2.1. \u2013 2.3. of the basic algorithm, Text;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Two-dimensional matrix of rules for each language, LangRules. Each row of the matrix contains a character or a combination of characters that are characteristic for a particular language;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Toggle switch variable, responsible for the need for text to comply with all the rules in case of text language identification according to the rules, MatchAllRules. Equals true.<\/span><\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The beginning of the algorithm.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 1. Checking the conditions Text = <\/span><span lang=\"en-US\">\u2205<\/span><span lang=\"en-US\"> and LangRules = <\/span><span lang=\"en-US\">\u2205<\/span><span lang=\"en-US\">. If at least one of the conditions is completed, finish the algorithm with the result \u00abfalse\u00bb.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2. For each row of the LangRules matrix, perform steps 2.1. \u2013 2.2.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.1. Create a Freq variable for calculating the fulfilled rules (that is, cases where the desired characters or combinations of characters are found in the string) and initialize it with the value 0.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.2. For each rule Rule in each row of the LangRules matrix, perform steps 2.2.1. \u2013 2.2.3.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.2.1. Create a Term variable and record in it the number of occurrences of a character or combination of characters that matches Rule in the Text.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.2.2. If Term &gt; 1, increment Freq.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.2.3. If MatchAllRules = true, check if the Freq value is equal to the number of Rules for a given row of the LangRules matrix. If equal, return the name of the current row of the LangRules matrix (i.e. the name of the language) and finish the algorithm. Otherwise, check the condition Freq &gt; 0. If the condition is true, return the name of the current row of the LangRules matrix and finish the algorithm.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 3. If the result did not return in step 2, finish the algorithm with the result \u00abfalse\u00bb.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The end of the algorithm.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><i><u>The function of statistical text language identification<\/u><\/i><\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Algorithm input data:<\/span><\/span><\/p>\n<ul>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">User text input processed in steps 2.1. \u2013 2.3. of basic algorithm, Text;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Two-dimensional matrix, each row of which contains all the characters of the alphabet of a particular language, Langs;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Two-dimensional matrix for recording the results of the function work for each individual language, LangRes;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Threshold of sensitivity, DetectRange. Equals 75;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Toggle variable UseStrLenPerLang. If true, the total number of alphabet characters found in Text will be given priority over the ratio of the number of characters encountered to the total number of characters of the language alphabet, if false, then vice versa. Equals true;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Toggle switch variable ReturnAllResults, responsible for returning the result of the analysis of all languages instead of returning the best result. Equals false.<\/span><\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The beginning of the algorithm.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 1. If Text = <\/span><span lang=\"en-US\">\u2205<\/span><span lang=\"en-US\">, finish the algorithm with the result \u00abfalse\u00bb.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2. For each Lang row of the Langs matrix, perform steps 2.1. \u2013 2.3.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.1. Record the value 0 to the LangRes row corresponding to Lang. Create a Freq variable for the subsequent record of the number of language characters encountered in the Text one or more times and initialize it with the value 0. Create a FullLangSymbols variable for the subsequent record of the total number of occurrences of the language characters in the Text and initialize it with the value 0. Create a CurLang array and record into it all the characters of the alphabet of the current language (corresponding to Lang).<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.2. For each LangItem character of the CurLang array, perform steps 2.2.1. \u2013 2.2.2.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.2.1. Create a Temp variable and record to it the total number of occurrences of the LangItem character in Text.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.2.2. If Temp &gt; 1, increment Freq and increase the FullLangSymbols value by Temp value.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 2.3. If UseStrLenPerLang = true, record the value of FullLangSymbols to the row of the LangRes matrix corresponding to the current language, otherwise record to the row of the LangRes matrix corresponding to the current language the value calculated by the formula (and rounded up):<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">[value] = (100 \/ [number of characters of the CurLang alphabet]) * Freq.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 3. Sort the LangRes matrix in order of descending the values recorded in step 2.3.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Step 4. If ReturnAllResults = true, return the entire LangRes matrix and finish the algorithm. Otherwise, check the condition [value of the top LangRes element] <\/span>\u2a7e<span lang=\"en-US\"> DetectRange. If the condition is true, return the name of the language corresponding to the top row of the LangRes matrix and finish the algorithm; otherwise, return \u00abnull\u00bb and finish the algorithm.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The end of the algorithm.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><b>User interface description<\/b><\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The appearance of the service interface is shown in Figure 1.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><a href=\"https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/language-identifier-1.png\" class=\"grouped_elements\" rel=\"tc-fancybox-group6651\" title=\"Language Identifier\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-8068\" src=\"https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/language-identifier-1.png\" alt=\"\" width=\"1194\" height=\"399\" srcset=\"https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/language-identifier-1.png 1194w, https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/language-identifier-1-300x100.png 300w, https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/language-identifier-1-1024x342.png 1024w, https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/language-identifier-1-768x257.png 768w\" sizes=\"(max-width: 1194px) 100vw, 1194px\" \/><\/a><\/span><\/p>\n<p align=\"center\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Figure 1 \u2013 Graphical interface of the service \u00abLanguage Identifier\u00bb<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The interface has the following areas:<\/span><\/span><\/p>\n<ul>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Drop-down menu for selecting test text in one of the languages;<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Input field for text for recognition. The field is equipped with the \u00abRefresh\u00bb button (filling in according to the selected item of the drop-down menu) and \u00abClear\u00bb button (delete all data);<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The button \u00abDefine language!\u00bb, which starts processing and allows to obtain the result.<\/span><\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">After clicking on the button \u00abDefine language!\u00bb the field for issuing processing results appears at the bottom of the screen.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><b>User scenarios of work with the service<\/b><\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><u>Scenario 1. Identifying of the test text language<\/u><\/span><\/span><\/p>\n<ol>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Select a test text using the drop-down menu. In case of undesirable changes in the content of the text field, click the \u00abRefresh\u00bb button.<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Press the button \u00abDefine language!\u00bb.<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Get the result (the name of the identified language) in the field for issuing results.<\/span><\/span><\/li>\n<\/ol>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><u>Scenario 2. Identifying of the user text language<\/u><\/span><\/span><\/p>\n<ol>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Press the \u00abClear\u00bb button to clear the input field or clear the input field manually.<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Enter text in the input field.<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Press the button \u00abDefine language!\u00bb.<\/span><\/span><\/li>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Get the result (the name of the identified language) in the field for issuing results.<\/span><\/span><\/li>\n<\/ol>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The possible result of the service work according to the proposed scenarios is presented in Figure 2.<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><a href=\"https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/language-identifier-2.png\" class=\"grouped_elements\" rel=\"tc-fancybox-group6651\" title=\"Language Identifier\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-8069\" src=\"https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/language-identifier-2.png\" alt=\"\" width=\"1189\" height=\"120\" srcset=\"https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/language-identifier-2.png 1189w, https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/language-identifier-2-300x30.png 300w, https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/language-identifier-2-1024x103.png 1024w, https:\/\/ssrlab.by\/wp-content\/uploads\/2018\/06\/language-identifier-2-768x78.png 768w\" sizes=\"(max-width: 1189px) 100vw, 1189px\" \/><\/a><\/span><\/p>\n<p align=\"center\"><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Figure 2 \u2013 The result of the service \u00abLanguage Identifier\u00bb work<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><b>Access to the service via the API<\/b><\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">To access the service \u00abLanguage Identifier\u00bb via the API, you need to send an AJAX request of the POST type to the address https:\/\/corpus.by\/LanguageIdentifier\/api.php. The following parameters are passed through the <em><strong>data<\/strong><\/em> array:<\/span><\/span><\/p>\n<ul>\n<li><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><em><strong>text<\/strong><\/em> \u2013 any input text with length of 80 characters or more.<\/span><\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Example of AJAX request:<\/span><\/span><\/p>\n<blockquote><p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">$.ajax({<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">type: \u201cPOST\u201d,<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">url: \u201chttps:\/\/corpus.by\/LanguageIdentifier\/api.php\u201d,<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">data:{<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\">\u201c<span lang=\"en-US\">text\u201d: \u201cHad I the heavens\u2019 embroidered cloths,<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Enwrought with golden and silver light,<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The blue and the dim and the dark cloths<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Of night and light and the half-light,<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">I would spread the cloths under your feet:<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">But I, being poor, have only my dreams;<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">I have spread my dreams under your feet;<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Tread softly because you tread on my dreams.\u201d<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">},<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">success: function(msg){ },<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">error: function() { }<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">});<\/span><\/span><\/p><\/blockquote>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The server will return a JSON array with input text (<em><strong>text<\/strong><\/em> parameter) and a code of identified language (<em><strong>result<\/strong><\/em> parameter). For example, using the above AJAX request, the following response will be generated:<\/span><\/span><\/p>\n<blockquote><p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">[<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">{<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\">\u201c<span lang=\"en-US\">text\u201d: \u201cHad I the heavens\u2019 embroidered cloths,<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Enwrought with golden and silver light,<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">The blue and the dim and the dark cloths<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Of night and light and the half-light,<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">I would spread the cloths under your feet:<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">But I, being poor, have only my dreams;<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">I have spread my dreams under your feet;<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Tread softly because you tread on my dreams.\u201d,<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\">\u201c<span lang=\"en-US\">result\u201d: \u201cen\u201d<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">}<\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">]<\/span><\/span><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\"><b>Source references<\/b><\/span><\/span><\/p>\n<p><span style=\"font-family: helvetica, arial, sans-serif; font-size: 16px;\"><span lang=\"en-US\">Service page \u2013 <\/span><span style=\"color: #0563c1;\"><u><a href=\"https:\/\/corpus.by\/LanguageIdentifier\/\"><span lang=\"en-US\">https:\/\/corpus.by\/LanguageIdentifier\/<\/span><\/a><\/u><\/span><\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>Language Identifier&#8221;> \u041c\u0430\u043b\u044e\u043d\u0430\u043a 1 \u2013 \u0413\u0440\u0430\u0444\u0456\u0447\u043d\u044b \u0456\u043d\u0442\u044d\u0440\u0444\u0435\u0439\u0441 \u0441\u044d\u0440\u0432\u0456\u0441\u0430 \u00ab\u0412\u044b\u0437\u043d\u0430\u0447\u044d\u043d\u043d\u0435 \u043c\u043e\u0432\u044b \u0442\u044d\u043a\u0441\u0442\u0443\u00bb \u0406\u043d\u0442\u044d\u0440\u0444\u0435\u0439\u0441 \u043c\u0430\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u044b\u044f \u0432\u043e\u0431\u043b\u0430\u0441\u0446\u0456: \u0412\u044b\u043f\u0430\u0434\u0430\u043b\u044c\u043d\u0430\u0435 \u043c\u0435\u043d\u044e \u0434\u043b\u044f \u0432\u044b\u0431\u0430\u0440\u0443 \u043f\u0440\u044b\u043a\u043b\u0430\u0434\u0443 \u0442\u044d\u043a\u0441\u0442\u0443 \u043d\u0430 \u0430\u0434\u043d\u043e\u0439 \u0437 \u043c\u043e\u045e; \u041f\u043e\u043b\u0435 \u045e\u0432\u043e\u0434\u0443 \u0442\u044d\u043a\u0441\u0442\u0443 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u0430\u0437\u043d\u0430\u0432\u0430\u043d\u043d\u044f. \u041f\u043e\u043b\u0435 \u0437\u0430\u0431\u044f\u0441\u043f\u0435\u0447\u0430\u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0456 \u00ab\u0410\u0431\u043d\u0430\u0432\u0456\u0446\u044c\u00bb (\u0437\u0430\u043f\u0430\u045e\u043d\u0435\u043d\u043d\u0435 \u0437\u0433\u043e\u0434\u043d\u0430 \u0437 \u0432\u044b\u0431\u0440\u0430\u043d\u044b\u043c \u043f\u0443\u043d\u043a\u0442\u0430\u043c \u0432\u044b\u043f\u0430\u0434\u0430\u043b\u044c\u043d\u0430\u0433\u0430 \u043c\u0435\u043d\u044e) \u0456 \u00ab\u0410\u0447\u044b\u0441\u0446\u0456\u0446\u044c\u00bb (\u0432\u044b\u0434\u0430\u043b\u0435\u043d\u043d\u0435 \u045e\u0441\u0456\u0445 \u0434\u0430\u0434\u0437\u0435\u043d\u044b\u0445); \u041a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0412\u044b\u0437\u043d\u0430\u0447\u044b\u0446\u044c \u043c\u043e\u0432\u0443!\u00bb, \u044f\u043a\u0430\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435 \u0430\u043f\u0440\u0430\u0446\u043e\u045e\u043a\u0443 \u0456 \u0434\u0430\u0437\u0432\u0430\u043b\u044f\u0435 \u0430\u0442\u0440\u044b\u043c\u0430\u0446\u044c [&hellip;]<\/p>\n<a class = \"excerpt\" href=\"https:\/\/ssrlab.by\/en\/6651\">Read more...<\/a>","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,290,292],"tags":[],"_links":{"self":[{"href":"https:\/\/ssrlab.by\/en\/wp-json\/wp\/v2\/posts\/6651"}],"collection":[{"href":"https:\/\/ssrlab.by\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssrlab.by\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssrlab.by\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/ssrlab.by\/en\/wp-json\/wp\/v2\/comments?post=6651"}],"version-history":[{"count":10,"href":"https:\/\/ssrlab.by\/en\/wp-json\/wp\/v2\/posts\/6651\/revisions"}],"predecessor-version":[{"id":8098,"href":"https:\/\/ssrlab.by\/en\/wp-json\/wp\/v2\/posts\/6651\/revisions\/8098"}],"wp:attachment":[{"href":"https:\/\/ssrlab.by\/en\/wp-json\/wp\/v2\/media?parent=6651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssrlab.by\/en\/wp-json\/wp\/v2\/categories?post=6651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssrlab.by\/en\/wp-json\/wp\/v2\/tags?post=6651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}