check_filename_consistency
Detect mismatches between a filename and its document text by flagging proper-noun-like tokens missing from the content.
Instructions
Tokenizes the filename (stripping extension, separators, common document-type stopwords, and — heuristically — the document owner's own leading First/Last name tokens), then flags any remaining proper-noun-like token that doesn't appear anywhere in the extracted document text. Facts only: presence or absence — never a verdict on whether a mismatch is intentional (brief §3, §4.4).
Accepts the document either as a filesystem path OR as inline
content_base64 (with filename required alongside it — this
is exactly the name that gets tokenized, so pass the file's
real name here, not a placeholder). Exactly one of the two
input forms must be given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| filename | No | ||
| content_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| flags | Yes | ||
| format | Yes | ||
| checked_tokens | Yes | ||
| filename_tokens | Yes | ||
| assumed_personal_name_tokens | Yes |