# Language Detector Processor in Elasticsearch Ingest pipeline

**URL:** <https://discuss.elastic.co/t/language-detector-processor-in-elasticsearch-ingest-pipeline/125659>\
**Category:** Elasticsearch\
**Created:** [March 26, 2018, 6:25pm UTC](https://discuss.elastic.co/t/language-detector-processor-in-elasticsearch-ingest-pipeline/125659 "2018-03-26T18:25:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RohanKumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohankumbhar/32/23649_2.png) [@RohanKumbhar](https://discuss.elastic.co/u/RohanKumbhar)\
**Post date:** [March 26, 2018, 6:25pm UTC](https://discuss.elastic.co/t/language-detector-processor-in-elasticsearch-ingest-pipeline/125659/1 "2018-03-26T18:25:51Z")

</div>

Hello,

Is there any way where i can detect the different languages present in the message or text through ingest pipeline ?

Regards,,  
Rohan

---

<div class="post-metadata">

**Author:** ![abdon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdon/32/9195_2.png) [@abdon](https://discuss.elastic.co/u/abdon)\
**Post date:** [March 28, 2018, 7:56am UTC](https://discuss.elastic.co/t/language-detector-processor-in-elasticsearch-ingest-pipeline/125659/2 "2018-03-28T07:56:53Z")

</div>

There is no out of the box language detection functionality in Elasticsearch, but the good news is that there is an open source plugin available at: [https://github.com/spinscale/elasticsearch-ingest-langdetect](https://github.com/spinscale/elasticsearch-ingest-langdetect). This plugin provides a processor which you can use in a pipeline to detect the language of a field in your documents.

While it's not an official plugin, it has been built by @spinscale, who is an Elasticsearch developer.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 28, 2018, 8:00am UTC](https://discuss.elastic.co/t/language-detector-processor-in-elasticsearch-ingest-pipeline/125659/3 "2018-03-28T08:00:14Z")

</div>

minor limitation - right now the plugin only returns the language with the highest probability. There is no chunking happening, which then is able to find different languages in one field.

But the plugin is open source, so feel free to provide patches or fork it, if you need to extend it!

--Alex

---

<div class="post-metadata">

**Author:** ![RohanKumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohankumbhar/32/23649_2.png) [@RohanKumbhar](https://discuss.elastic.co/u/RohanKumbhar)\
**Post date:** [March 28, 2018, 9:20am UTC](https://discuss.elastic.co/t/language-detector-processor-in-elasticsearch-ingest-pipeline/125659/4 "2018-03-28T09:20:07Z")

</div>

Thanks @abdon & @spinscale for the information !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 25, 2018, 9:20am UTC](https://discuss.elastic.co/t/language-detector-processor-in-elasticsearch-ingest-pipeline/125659/5 "2018-04-25T09:20:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
