# Install kytea with Homebrew, MacPorts, Nix

Toolkit for analyzing text, especially Japanese and Chinese. Version 0.4.7 via Homebrew; verified 2026-06-19.

## Install

```sh
sudo av install brew:kytea
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install kytea
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kytea
```

  Evidence: MacPorts ports tree: textproc/kytea/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kytea
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ky/kytea/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:kytea
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/kytea>
- **Version:** 0.4.7
- **Source summary:** Toolkit for analyzing text, especially Japanese and Chinese
- **Homepage:** <https://www.phontron.com/kytea/>
- **Repository:** <https://github.com/neubig/kytea>
- **Upstream docs:** <https://www.phontron.com/kytea>
- **License:** Apache-2.0
- **Source archive:** <https://www.phontron.com/kytea/download/kytea-0.4.7.tar.gz>
- **Last updated:** 2026-06-19T12:31:22-07:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- api-example (cli)
- kytea (cli)
- train-kytea (cli)
- api-example (alias)
- kytea (alias)
- train-kytea (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.4.7
- Package-manager updated: 2026-06-19
- Local data: ok
- Upstream repository: https://www.phontron.com/kytea/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

KyTea is the Kyoto Text Analysis Toolkit, a C++ toolkit by Graham Neubig for word segmentation, pronunciation estimation, and other analysis tasks, especially for Japanese and other languages where word or morpheme boundaries are not explicit in raw text.

### Project history

The KyTea NEWS file records version 0.0.1 on 2009-11-05 as the initial release of KyWs and KyPe. The public GitHub repository and README describe the later project as a general text-analysis toolkit focused on Japanese and languages requiring segmentation.

KyTea's design sits in the statistical NLP toolkit tradition before transformer-based tokenizers became dominant. It gives researchers and language-processing users a trainable analyzer with command-line tools and a library API rather than a closed dictionary-only analyzer.

### Adoption history

KyTea's adoption is mostly academic and language-tooling oriented. It appears in package managers such as Homebrew, MacPorts, and Nix because Japanese and Chinese text-processing workflows often need a reproducible segmenter that can be scripted from Unix pipelines.

### How it is used

The package installs kytea for analysis and train-kytea for model training. Users run it to segment text, estimate pronunciations, prepare corpora, or build custom models for domains where default Japanese tokenizers are not enough.

### Why package nerds care

KyTea is a nice package-manager artifact because it packages research NLP into classic Unix form: a small binary, a training command, headers, and docs. It is especially useful in multilingual text-analysis stacks where tokenization is a prerequisite rather than the final task.

### Timeline

- 2009-11-05: KyTea 0.0.1 was released as the initial release of KyWs and KyPe.
- 2009-11-16: The ChangeLog records version 0.0.2 with Shift-JIS support and an Autotools build-system change.
- 2026-07-01: The GitHub releases page for neubig/kytea listed no packaged GitHub releases, so the historical anchor remains the repository NEWS and source documentation.

### Related projects

- Related tools and concepts include Japanese morphological analyzers, Chinese word segmentation, MeCab-style tokenization workflows, statistical NLP, corpus preparation, and trainable language-specific text-analysis pipelines.

### Sources

- <https://github.com/neubig/kytea>
- <https://github.com/neubig/kytea/blob/master/ChangeLog>
- <https://raw.githubusercontent.com/neubig/kytea/master/NEWS>
- <https://www.phontron.com/kytea>
- <https://www.phontron.com/kytea/api.html>
- <https://www.phontron.com/kytea/train.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** kytea
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - kytea: normalized package name match | nixpkgs package indexes: pkgs/by-name/ky/kytea/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - kytea: normalized package name match | MacPorts ports tree: textproc/kytea/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [juman](https://www.automicvault.com/pkg/brew/juman/) - Shares av.db curated category or tags: cli, japanese, natural-language-processing, nlp, science.
- [jumanpp](https://www.automicvault.com/pkg/brew/jumanpp/) - Shares av.db curated category or tags: cli, japanese, natural-language-processing, nlp, science.
- [freeling](https://www.automicvault.com/pkg/brew/freeling/) - Shares av.db curated category or tags: cli, natural-language-processing, nlp, science.
- [sfst](https://www.automicvault.com/pkg/brew/sfst/) - Shares av.db curated category or tags: cli, natural-language-processing, nlp, science.
- [link-grammar](https://www.automicvault.com/pkg/brew/link-grammar/) - Shares av.db curated category or tags: cli, natural-language-processing, science.
- [openfst](https://www.automicvault.com/pkg/brew/openfst/) - Shares av.db curated category or tags: cli, nlp, science.
- [aamath](https://www.automicvault.com/pkg/brew/aamath/) - Shares av.db curated category or tags: cli, science.
- [abpoa](https://www.automicvault.com/pkg/brew/abpoa/) - Shares av.db curated category or tags: cli, science.

## Combined YAML source

View the package source record on GitHub. [combined/kytea.yml](https://github.com/automic-vault/db/blob/main/combined/kytea.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
