thrax
« Back to VersTracker
Description:
Tools for compiling grammars into finite state transducers
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: nlp fst compiler grammar openfst
Install: brew install thrax
About:
Thrax is a suite of tools for compiling grammar rules expressed in the GRM language into finite state transducers (FSTs). It leverages the OpenFST library to create efficient, weighted transducers for complex text processing tasks. This enables high-performance, bidirectional mapping between surface forms and analysis representations.
Key Features:
  • Compiles GRM grammar files into OpenFST transducers
  • Supports both lexical and phonological rule compilation
  • Provides tools for testing and visualizing grammar behavior
  • Integrates seamlessly with the OpenFST C++ library ecosystem
Use Cases:
  • Developing morphological analyzers and generators for NLP
  • Implementing text normalization and phonological rules
  • Creating finite-state spell-checkers and hyphenation systems
Alternatives:
  • XFST – XFST is a proprietary tool with similar functionality but lacks OpenFST integration
  • HFST – HFST is an open-source alternative with broader format support but different tooling philosophy
Version History
Detected Version Rev Change Commit
Sep 12, 2024 10:08pm 0 VERSION_BUMP 1a655d2f