robertmeissner481 downloadsHighlights sentences that exceed a configurable word count threshold to help improve writing clarity and readability.
An Obsidian plugin that helps improve writing clarity by highlighting sentences that exceed a configurable word count threshold.
Mainly used by me to have brief sentences in my novel.
.obsidian/plugins/long-sentence-highlighter/ directoryThe plugin provides several commands accessible via the Command Palette (Ctrl/Cmd + P):
Access plugin settings via Settings > Community Plugins > Long Sentence Highlighter:
The plugin analyzes text content and identifies sentences that exceed your configured word threshold. It uses CodeMirror 6's decoration system for reliable highlighting that does not interfere with editing.
Sentence detection: The plugin splits text using common sentence delimiters (periods, exclamation marks, question marks) while handling paragraph breaks appropriately.
Word counting: Words are counted by splitting on whitespace and filtering out empty strings.
Long sentences can make text harder to read and understand. This plugin helps you identify sentences that might benefit from being split or simplified. Consider:
# Install dependencies
npm install
# Development build with watch mode
npm run dev
# Production build
npm run build
main.ts - Main plugin code with highlighting logicmanifest.json - Plugin metadatastyles.css - Additional CSS styles (if needed)Contributions are welcome! Please read our Contributing Guide for details on our development process, coding standards, and how to submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this plugin helpful, consider:
See CHANGELOG.md for detailed release notes and version history.