Skip to content

Commit 8ad735a

Browse files
ericamickpolyfractal
authored andcommitted
Update 50_Analysis_chain.asciidoc (elastic#541)
1 parent 8ff2fbd commit 8ad735a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

260_Synonyms/50_Analysis_chain.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ stemmer, and to list just the root words that would be emitted by the stemmer:
3939
Normally, synonym filters are placed after the `lowercase` token filter and so
4040
all synonyms are ((("synonyms", "and the analysis chain", "case-sensitive synonyms")))((("case-sensitive synonyms")))written in lowercase, but sometimes that can lead to odd
4141
conflations. For instance, a `CAT` scan and a `cat` are quite different, as
42-
are `PET` (positron emmision tomography) and a `pet`. For that matter, the
42+
are `PET` (positron emission tomography) and a `pet`. For that matter, the
4343
surname `Little` is distinct from the adjective `little` (although if a
4444
sentence starts with the adjective, it will be uppercased anyway).
4545

@@ -49,15 +49,15 @@ that your synonym rules would need to list all of the case variations that you
4949
want to match (for example, `Little,LITTLE,little`).
5050

5151
Instead of that, you could have two synonym filters: one to catch the case-sensitive
52-
synonyms and one for all the case-insentive synonyms. For instance, the
52+
synonyms and one for all the case-insensitive synonyms. For instance, the
5353
case-sensitive rules could look like this:
5454

5555
"CAT,CAT scan => cat_scan"
5656
"PET,PET scan => pet_scan"
5757
"Johnny Little,J Little => johnny_little"
5858
"Johnny Small,J Small => johnny_small"
5959

60-
And the case-insentive rules could look like this:
60+
And the case-insensitive rules could look like this:
6161

6262
"cat => cat,pet"
6363
"dog => dog,pet"

0 commit comments

Comments
 (0)