# Elasticsearch portuguese stemmer inconsistency

**URL:** <https://discuss.elastic.co/t/elasticsearch-portuguese-stemmer-inconsistency/266153>\
**Category:** Elasticsearch\
**Created:** [March 3, 2021, 7:52pm UTC](https://discuss.elastic.co/t/elasticsearch-portuguese-stemmer-inconsistency/266153 "2021-03-03T19:52:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathulbrich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathulbrich/32/63127_2.png) [@Mathulbrich](https://discuss.elastic.co/u/Mathulbrich)\
**Post date:** [March 3, 2021, 7:52pm UTC](https://discuss.elastic.co/t/elasticsearch-portuguese-stemmer-inconsistency/266153/1 "2021-03-03T19:52:44Z")

</div>

Hi, recently I noticed an strange behavior by using the portuguese stemmers. First of all, I'm using _light\_portuguese_ stemmer in production environment and have some problems stemming the word "comissões" (is equivalent to _commissions_ in english).

Using the \_analyze API as below:

```auto
GET /_analyze?pretty
{
  "text": [
    "comissão",
    "comissao",
    "comissões",
    "comissoes"
  ],
  "tokenizer": "whitespace",
  "filter": [{ "type": "stemmer", "language": "light_portuguese"}]
}

```

I got the following response:

```auto
{
  "tokens" : [
    {
      "token" : "comissa",
      "start_offset" : 0,
      "end_offset" : 8,
      "type" : "word",
      "position" : 0
    },
    {
      "token" : "comissa",
      "start_offset" : 9,
      "end_offset" : 17,
      "type" : "word",
      "position" : 101
    },
    {
      "token" : "comissa",
      "start_offset" : 18,
      "end_offset" : 27,
      "type" : "word",
      "position" : 202
    },
    {
      "token" : "comisso",
      "start_offset" : 28,
      "end_offset" : 37,
      "type" : "word",
      "position" : 303
    }
  ]
}

```

It was expected to all have same steam because in portuguese "comissões" (commissions) is the plural of "comissão" (commission), but comissoes without tilde (~) ins't returning the same stem as with tilder.

Even using other portuguese stemmers ( **light\_portuguese** , **minimal\_portuguese** , **portuguese** , **portuguese\_rslp** ) all token don't get same same stem at all.

Anyone have an idea if there's something to do about that?

---

<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:** [March 31, 2021, 7:53pm UTC](https://discuss.elastic.co/t/elasticsearch-portuguese-stemmer-inconsistency/266153/2 "2021-03-31T19:53:00Z")

</div>

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