docs(pii): describe what extend_to_previous_word also takes

Titles and prepositions in front of a name are taken as well, and using
both directions on one name group swallows a following number.

Assisted-by: Claude Code:claude-sonnet-5-5
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto committed 2026-10-13 08:10:55 +00:00
1 parent f420bfcc26
commit 5aabc5891f
1 file changed
+7
+7
View File
@@ -142,6 +142,13 @@ Here the preceding word must consist of letters (plus `-` and `'`): a word
with digits - an amount, a date, a room number - is never taken, nor a
protected term. The search skips spaces and tabs but never a line break.
The word before a hit is not always a first name: a title (`Herr`), a
preposition or any other plain word in front of the surname is taken too
(`Gast Greta Waldmeister` loses `Greta`, `Herrn Waldmeister` loses `Herrn`).
Like the next-word option it trades over-masking for fewer leaks. Do not
combine both directions on the same name group: each hit then also takes the
word after it, so a name followed by a number swallows that number.
#### Protected terms
The opposite failure is a value the model tags although it must reach the