Overview: Local & Private NLP #
Unlike cloud-based AI tools that upload user manuscripts to third-party servers, FleshNote's linguistic intelligence operates 100% locally on the author's machine. The architecture combines three core libraries:
- spaCy / HuSpaCy: Powers Named Entity Recognition (NER), Part-of-Speech (POS) tagging, and Dependency Parsing across English, Hungarian, and Polish.
- NLTK WordNet: Provides rich synonym lookup and Open Multilingual WordNet (OMW) synsets.
- Hunspell (via
phunspell): Provides local spellchecking with automatic whitelisting of worldbuilding entities.
Dynamic AppData Model Loader (`nlp_manager.py`) #
Bundling neural language models would bloat the desktop installer beyond 1.2 GB. Instead, FleshNote ships as a lightweight ~80 MB binary and downloads required language models on demand into the user's OS profile:
| Operating System | Persistent Models Directory Path |
|---|---|
| Windows | %APPDATA%\FleshNote\Models\ |
| macOS | ~/Library/Application Support/FleshNote/Models/ |
| Linux | ~/.config/FleshNote/Models/ |
Execution Context Branching
- Development Mode: Executes an isolated
pip install --target {models_dir}subprocess. - PyInstaller Frozen Production: Because
pipis not available inside the compiled binary,nlp_manager.pydirectly downloads the.whlor.tar.gzarchive via Python'surllib, extracts it in a temporary folder, and builds the package structure natively inAppData/Modelswhile streamingDOWNLOAD_PROGRESS: {pct}events to Electron.
NLP Subsystem Deep Dives #
Explore specific components of the NLP and linguistic intelligence architecture:
➔ The Janitor Auditor (9 Analyzers)
Ambient background scanning, the 9-analyzer pipeline, Show Don't Tell confidence scoring, and fuzzy radius offset mitigation.
➔ Language Support Matrix & Rules
Full audit of EN, HU (agglutinative grammar), PL (Slavic inflections), and missing languages with contributor blueprints.
➔ Name & Location Generators
Procedural syllable phonology, fantasy presets, real-world CSV databases, and multilingual geographical place name morphology.