# 使用 Homebrew 安装 thrax

查看 thrax 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:thrax
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install thrax
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:thrax
- **软件包管理器:** Homebrew
- **版本:** 1.3.10
- **来源摘要:** Tools for compiling grammars into finite state transducers
- **主页:** <https://www.openfst.org/twiki/bin/view/GRM/Thrax>
- **最后更新:** 2026-06-26T12:23:28-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- thraxcompiler (别名)
- thraxmakedep (别名)
- thraxrandom-generator (别名)
- thraxrewrite-tester (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.3.10
## 项目历史与用法

OpenGrm Thrax is a grammar compiler toolkit for compiling grammars written as regular expressions and context-dependent rewrite rules into weighted finite-state transducers using the OpenFst format.

### 项目历史

The official OpenGrm README presents Thrax as release 1.2 and ties it directly to OpenFst: users need OpenFst with FAR, PDT, and MPDT support or the OpenFst `--enable-grm` option. The documentation is hosted on the OpenFst/OpenGrm TWiki rather than a public GitHub repository.

### 采用历史

Thrax's adoption is specialized: it serves finite-state grammar, language-processing, and computational-linguistics workflows rather than broad application development. Its Homebrew package makes the OpenGrm tools available to macOS users who want command-line programs such as `thraxcompiler`, `thraxmakedep`, and `thraxrewrite-tester` without building the OpenFst-related stack manually.

### 使用方式

The quick tour recommends copying the installed sample grammars from `/usr/local/share/thrax/grammars`, running `thraxmakedep`, building with `make`, and testing the resulting FAR archive with `thraxrewrite-tester`. The same page documents grammar features for tokenization, rewrite rules, PDT/MPDT usage, and morphological paradigms.

### 为什么软件包爱好者会关心

For package nerds, Thrax is a good example of a niche research-grade CLI where packaging matters because the dependency and build flags are the hard part. The official README calls out C++11, POSIX, bison, OpenFst, and specific OpenFst features, so a package manager saves users from reproducing a fragile local build recipe.

### 时间线

- 2017: Official OpenGrm README revision documents Thrax release 1.2.
- 2019: Official quick tour revision documents the OpenGrm Thrax grammar compiler workflow.
- Thrax 1.1.0: Official quick tour notes added support for linguistic features and aspects of paradigmatic morphology.
- Thrax 1.2.4: Official quick tour notes a more bash-friendly separator for PDT/parens/assignments triples.

### Related projects

- Related projects include OpenFst, OpenGrm, weighted finite-state transducer tools, grammar compilers, and language-processing toolkits that use rewrite rules and finite-state archives.

### 来源

- <https://www.openfst.org/twiki/bin/view/GRM/ReadMe - official OpenGrm Thrax README for release, requirements, OpenFst dependency, installation, and usage paths.>
- <https://www.openfst.org/twiki/bin/view/GRM/Thrax - official Thrax documentation entry point.>
- <https://www.openfst.org/twiki/bin/view/GRM/ThraxQuickTour - official quick tour for compiler workflow, `thraxmakedep`, `thraxrewrite-tester`, PDT/MPDT, feature, and morphology notes.>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/thrax.yml](https://github.com/mxcl/pkgdb/blob/main/combined/thrax.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
