# Possessive\_english stemmer ignoring proctected keywords in Elasticsearch

**URL:** <https://discuss.elastic.co/t/possessive-english-stemmer-ignoring-proctected-keywords-in-elasticsearch/357395>\
**Category:** Elasticsearch\
**Created:** [April 15, 2024, 8:12am UTC](https://discuss.elastic.co/t/possessive-english-stemmer-ignoring-proctected-keywords-in-elasticsearch/357395 "2024-04-15T08:12:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarah\_Buchinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sarah_buchinger/32/126488_2.png) [@Sarah\_Buchinger](https://discuss.elastic.co/u/Sarah_Buchinger)\
**Post date:** [April 15, 2024, 8:12am UTC](https://discuss.elastic.co/t/possessive-english-stemmer-ignoring-proctected-keywords-in-elasticsearch/357395/1 "2024-04-15T08:12:40Z")

</div>

Hello !

Would love to get your help with the following.

I want to use the `possessive_english` stemmer with an exception list, to prevent the removal of the ending " 's " in specific words.  
However, the `possessive_english` stemmer ignores exception lists.

For example, the word "french's", even when marked as a keyword, will get stemmed to "french" :

```auto
POST /_analyze
{
  "text": "french's",
  "tokenizer": "standard",
  "filter": [
    {
      "keywords": ["french's"],
      "type": "keyword_marker"
    },
    {
      "type": "stemmer",
      "language": "possessive_english"
    }

```

Result :

```auto
{
  "tokens": [
    {
      "token": "french",
      "start_offset": 0,
      "end_offset": 8,
      "type": "<ALPHANUM>",
      "position": 0
    }
  ]
}

```

In comparison, the word "standing", when marked as a keyword will not get stemmed with the english stemmer.

```auto
POST /_analyze
{
  "text": "standing",
  "tokenizer": "standard",
  "filter": [
    {
      "keywords": ["standing"],     
      "type": "keyword_marker"  
    },
    {
      "type": "stemmer",
      "language": "english"
    }
  ]
}

```

Result :

```auto
{
  "tokens": [
    {
      "token": "standing",
      "start_offset": 0,
      "end_offset": 8,
      "type": "<ALPHANUM>",
      "position": 0
    }
  ]
}

```

Any insights on how to make the `possessive_english` stemmer consider an exception list ?

Thank you
