Commit b20e1cd
docs: explain how roles get assigned, and what input shapes work
concepts.rst described the data model — string becomes tokens, tokens
carry roles, fields are views — but never the decision procedure. v1's
README did: a vocabulary layer claims words for what they are, wherever
they sit, and a positional layer assigns whatever is left by where it
sits. That framing is what customize.rst's Lexicon/Policy split rests
on, so without it "which container does my setting go in?" is
answerable only by consulting a table.
It also carries three things v1 said and 2.0 had dropped: that an
unrecognized word still gets a sensible role (the positional layer
recognizes nothing), that title/suffix are really pre-nominal and
post-nominal — "Dr." is a title before a name and a suffix after — and
that parsing is deterministic, with no model and no training data, so a
wrong parse is wrong reproducibly and can be fixed by configuration.
usage.rst gains v1 README's "Supported Name Structures". Comma order
was demonstrated once inside a matches() example and described once in
a name_order table cell, so a reader could not learn that "Doe, John"
works without stumbling onto it.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent d0f887e commit b20e1cd
2 files changed
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
44 | 74 | | |
45 | 75 | | |
46 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
31 | 53 | | |
32 | 54 | | |
33 | 55 | | |
| |||
0 commit comments