{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "cdcailf-cjkfold--scan-corpus-for-invisible-characters",
 "repo": "cdcailf/cjkfold",
 "repo_url": "https://github.com/cdcailf/cjkfold",
 "repo_slug": "cdcailf-cjkfold",
 "title": "Audit a folder of extracted text for hidden characters",
 "page_title": "How to audit a folder of extracted text for hidden characters with Cjkfold",
 "summary": "Scan a whole folder for look-alikes, compatibility characters and invisible characters in one report.",
 "who": "A data engineer who has inherited a folder of extracted text and needs to know what kinds of hidden problems it contains.",
 "problem": "Zero-width spaces leave no visible glyph, so two strings differing only by one look identical and compare unequal.",
 "outcome": "A per-file report that groups findings by class and says what can be fixed by folding, by NFKC, by stripping or only by hand.",
 "steps": [
  "`pip install cjkfold`",
  "`cjkfold scan corpus/`",
  "Read the grouped findings. Treat `manual` items, such as zero-width joiners in emoji, as items to review rather than delete.",
  "`cjkfold scan --json corpus/` if you want one JSON object per file for further processing. (inferred, check the README)",
  "`cjkfold scan --strict corpus/` if you want the run to exit 1 when a foldable or compatibility character is found. (inferred, check the README)"
 ],
 "agent_prompt": "Using the cjkfold repo, run `cjkfold scan --json <path-to-corpus-folder>` after installing it with pip install cjkfold. Report the number of files scanned, the number of findings per class, and the files with the most invisible characters. Verify that scan exits with code 0 when it only reports findings, as the README describes.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The scan command exits 0 even when it finds problems, so a pipeline needs --strict or a separate check to fail on findings.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.9 or newer with pip",
  "Plain text extracted from the PDF, for example with pdftotext",
  "A terminal for the command line examples, or a Python project for the library calls"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/cdcailf-cjkfold/scan-corpus-for-invisible-characters/",
 "md": "https://dedupedai.com/use-cases/cdcailf-cjkfold/scan-corpus-for-invisible-characters/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/cdcailf-cjkfold--scan-corpus-for-invisible-characters.json",
 "api_version": "v1"
}
