A web-based tool for testing and validating hyphenation patterns. This application helps developers and linguists fine-tune hyphenation rules and compare generated output with expected results.
- Interactive Hyphenation Testing: Test hyphenation patterns in real-time
- Pattern Comparison: Compare generated hyphenation with expected output to identify differences
- Customizable Separation Sign: Define custom characters for hyphenation marks
- Pattern Editor: Edit and manage hyphenation patterns directly in the application
- Visual Highlighting: Highlight separation signs for easy identification
The application is deployed and available online at: https://farscrl.github.io/hyphenation-tester/
No installation required - simply open the link in your browser and start testing hyphenation patterns!
- Node.js (v22 or higher)
- pnpm
- Clone the repository:
git clone <repository-url>
cd hyphen-tester- Install dependencies:
pnpm installRun the development server:
pnpm run startNavigate to http://localhost:4200/ in your browser. The application will automatically reload when you modify any source files.
Build the application for production:
pnpm run buildThe build artifacts will be stored in the dist/hyphenation-tester/browser/ directory.
- Original Text: Paste the text you want to hyphenate in the first textarea
- Expected Output: Enter the text with hyphenation marks (using the configured separation sign) in the second textarea
- Generate Hyphenation: Click the button to generate hyphenation based on current rules
- Compare Results: View the differences between generated and expected output:
- Green: Added hyphenation marks
- Red: Missing hyphenation marks
- Grey: Unchanged text
- Hyphenation Patterns: Edit the hyphenation patterns (one per line)
- Patterns follow the Hunspell hyphenation format
- Separation Sign: Customize the character used to mark hyphenation points (default: ‧)
- Highlight Signs: Toggle visual highlighting of separation characters in the output
- Angular 21: Modern frontend framework
- Tailwind CSS 4.x: Utility-first CSS framework for responsive design
- Hyphen Library: Hyphenation engine for text processing
- Diff Library: Text comparison for visual output and validation
This project is licensed under the MIT License. See the LICENSE.md file for details.