xuanwo on X: with the model on, a report's words were masked as names,
关键 in "### 关键发现", 易触 in "`gh pr view` 易触发" and 边界 in
"判断和边界,". Each starts with a surname (关, 易, 边), and zhName took
a cue around it that was too weak alone:
- 发 and 打 after it counted as the verb a person does. They now count
only when no Han character follows, or one of 了个给过一 (发了个消息,
打给他); 发现, 打开 begin a word.
- 和 and 与 before it counted as "a person comes next". They join like
to like, so they now count only when a pronoun or what may be a name
(a surname and 1-3 characters, no zhWords word) is before them:
吴敏和郑浩, 我和张伟, not 判断和边界.
- A sentence started after any space or symbol. A space after a word or
code is inside a sentence, so the start is now after punctuation (with
spaces after it or none) or at the text's start; a backtick no longer
counts.
The fixtures are the reporter's literal lines, beside names around the
same cues that still mask (### 张伟发了个消息, 我和张伟,, 这件事。 李娜说过).
Run (mote, mote-run): go test ./internal/redact (TestChineseNames,
TestMaskEval and the rest) ok; gofmt clean. Broken by hand, each red on
its own case: the 和/与 rule off (边界), wordAfter off (关键发现),
sentenceStart always true (易触发).
Running as this is pushed: vet (darwin, windows, linux) of
internal/redact and go test of redact, masking, pii, otlp, sessions,
settings, gui and gateway.
Not tried: the real model on the reporter's whole session; a name that
starts after a space following a Chinese word (这件事 李娜说过) is now
left, as one inside a sentence.