Modular language processing pipeline system for building grammar checkers and text-to-speech applications.
Define pipelines in TypeScript, compile to efficient Rust runtime, distribute as single-file bundles.
- TypeScript Pipelines: Define text processing workflows in TypeScript
- Modular Architecture: Composable modules for HFST, CG3, spell checking, and TTS
- Bundle Distribution: Package pipelines with assets into
.drbfiles - Cross-platform: Rust core with Swift/Java/Deno/Python bindings and CLI tools
For working with the runtime as a developer:
# Install divvun-runtime's dev dependencies
brew install pytorch icu4c deno # macOS
cargo install just
# Install cg3 and hfst's build dependencies
brew install bison flex cmake
# Clone and build
git clone https://github.com/divvun/divvun-runtime.git
cd divvun-runtime
just build
just install
# Create a pipeline
divvun-runtime init
divvun-runtime run ./pipeline.ts "Hello World"Build spell and grammar checkers with contextual error detection and suggestions.
Create TTS systems with phonological processing and normalization.
Full documentation: https://divvun.github.io/divvun-runtime/
# Build CLI
just build
# Install to ~/.cargo/bin
just install
# Build UI (optional)
just build-ui
# Run UI in dev mode
just run-uiThe divvun-runtime library is dual-licensed under:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
You may choose either license for library use.
The command-line tools and playground (cli/, playground/) are licensed under GPL-3.0 (LICENSE-GPL).