# Install link-grammar with Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper

Carnegie Mellon University's link grammar parser. Version 5.13.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:link-grammar
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install link-grammar
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install link-grammar
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install liblink-grammar-dev
```

  Evidence: Debian stable package indexes: liblink-grammar-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install link-grammar
```

  Evidence: Fedora Rawhide package metadata: link-grammar from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#link-grammar
```

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

- pacman (92%):

```sh
sudo pacman -S link-grammar
```

  Evidence: Arch Linux sync databases: link-grammar from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install liblink-grammar5
```

  Evidence: openSUSE Tumbleweed package metadata: liblink-grammar5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:link-grammar
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/link-grammar>
- **Version:** 5.13.0
- **Source summary:** Carnegie Mellon University's link grammar parser
- **Homepage:** <https://github.com/opencog/link-grammar>
- **Repository:** <https://github.com/opencog/link-grammar>
- **Upstream docs:** <https://github.com/opencog/link-grammar>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://github.com/opencog/link-grammar/archive/refs/tags/link-grammar-5.13.0.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- link-generator (cli)
- link-parser (cli)
- link-generator (alias)
- link-parser (alias)

## Build dependencies

- ant
- autoconf
- autoconf-archive
- automake
- libtool
- pkgconf
- python@3.14
- swig

## Uses from macOS

- libedit
- sqlite

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 5.13.0
- Local data: ok
- Upstream repository: https://github.com/opencog/link-grammar
- Upstream latest detected: link-grammar-5.13.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

Link Grammar is the CMU Link Grammar natural-language parser packaged as libraries, dictionaries, and command-line tools. It turns sentences into graph-like typed links between words, with conversions to more conventional phrase-structure and dependency views.

### Project history

The theory was developed in 1991 by Davy Temperley, John Lafferty, and Daniel Sleator at Carnegie Mellon University. The project's README points to the original 1991 CMU technical report, a 1993 parsing workshop paper, and a 1995 robust parsing paper as the foundational publications.

The modern package is a continuation of the original CMU parser but has diverged substantially from the early code base. The README describes major engineering evolution: extensive bug fixes, orders-of-magnitude performance work, full multithreading, UTF-8 support, security cleanup for cloud deployment, improved English coverage, and added languages including Thai and Russian.

### Adoption history

Link Grammar has persisted as a niche but long-lived NLP package because it combines an academic grammar formalism with runnable dictionaries and a small interactive parser. Its presence in Unix package managers keeps the CMU parser available for experiments, symbolic NLP systems, dictionary work, and regression tests even as statistical and neural NLP methods became dominant.

### How it is used

The package includes language dictionaries, APIs for multiple programming languages, and command-line tools such as link-parser and link-generator. The interactive parser is useful for inspecting linkages and costs by hand, while the library form lets other NLP systems consume the parser programmatically.

### Why package nerds care

Link Grammar is package-nerd catnip because it is an old academic parser that still builds as a normal Unix package. It carries dictionaries, generated data, C libraries, bindings, man pages, and CLI tools, preserving a pre-deep-learning branch of NLP in a form that can still be installed with a package manager.

### Timeline

- 1991: Temperley, Lafferty, and Sleator developed the Link Grammar theory at Carnegie Mellon University.
- 1991: The CMU-CS-91-196 technical report Parsing English with a Link Grammar was published.
- 1993: Sleator and Temperley presented Parsing English with a Link Grammar at the Third International Workshop on Parsing Technologies.
- 1995: Grinberg, Lafferty, and Sleator published A Robust Parsing Algorithm for Link Grammars.
- 5.9.0: The package added an experimental sentence-generation system exposed through link-generator.

### Related projects

- Related projects include the original CMU Link Grammar parser, OpenCog Language Learning, the link-generator tool, and downstream NLP systems that prefer symbolic grammar structures over purely statistical parsers.

### Sources

- <https://github.com/opencog/link-grammar>
- <https://github.com/opencog/link-grammar/blob/master/AUTHORS>
- <https://github.com/opencog/link-grammar/blob/master/README.md>
- <https://www.cs.cmu.edu/afs/cs.cmu.edu/project/link/pub/www/papers/ps/LG-IWPT93.ps>
- <https://www.cs.cmu.edu/afs/cs.cmu.edu/project/link/pub/www/papers/ps/tr95-125.ps>


## 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:** link-grammar
- **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

- Debian apt - liblink-grammar-dev - 5.12.5~dfsg-1+b3: normalized package name match | Debian stable package indexes: liblink-grammar-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser (development headers) | https://www.abisource.com/projects/link-grammar/
- Debian apt - liblink-grammar-java - 5.12.5~dfsg-1+b3: normalized package name match | Debian stable package indexes: liblink-grammar-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser (JNI library) | https://www.abisource.com/projects/link-grammar/
- Debian apt - liblink-grammar5t64 - 5.12.5~dfsg-1+b3: normalized package name match | Debian stable package indexes: liblink-grammar5t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser (libraries) | https://www.abisource.com/projects/link-grammar/
- Debian apt - link-grammar - 5.12.5~dfsg-1+b3: normalized package name match | Debian stable package indexes: link-grammar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser | https://www.abisource.com/projects/link-grammar/
- Debian apt - link-grammar-dictionaries-all - 5.12.5~dfsg-1: normalized package name match | Debian stable package indexes: link-grammar-dictionaries-all from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser (all dictionaries) | https://www.abisource.com/projects/link-grammar/
- Debian apt - link-grammar-dictionaries-en - 5.12.5~dfsg-1: normalized package name match | Debian stable package indexes: link-grammar-dictionaries-en from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser (English dictionary) | https://www.abisource.com/projects/link-grammar/
- Debian apt - python-link-grammar-examples - 5.12.5~dfsg-1: normalized package name match | Debian stable package indexes: python-link-grammar-examples from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CMU's link grammar parser (Python examples) | https://www.abisource.com/projects/link-grammar/
- Debian apt - python3-link-grammar - 5.12.5~dfsg-1+b3: normalized package name match | Debian stable package indexes: python3-link-grammar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Carnegie Mellon University's link grammar parser (Python 3) | https://www.abisource.com/projects/link-grammar/
- Nix - link-grammar: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/link-grammar/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - liblink-grammar-dev - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblink-grammar-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Carnegie Mellon University's link grammar parser (development headers) | https://www.abisource.com/projects/link-grammar/
- Ubuntu apt - liblink-grammar-java - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblink-grammar-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Carnegie Mellon University's link grammar parser (JNI library) | https://www.abisource.com/projects/link-grammar/
- Ubuntu apt - liblink-grammar5 - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblink-grammar5 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Carnegie Mellon University's link grammar parser (libraries) | https://www.abisource.com/projects/link-grammar/
- Ubuntu apt - link-grammar - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: link-grammar from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Carnegie Mellon University's link grammar parser | https://www.abisource.com/projects/link-grammar/
- Ubuntu apt - link-grammar-dictionaries-all - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: link-grammar-dictionaries-all from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Carnegie Mellon University's link grammar parser (all dictionaries) | https://www.abisource.com/projects/link-grammar/
- Ubuntu apt - link-grammar-dictionaries-en - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: link-grammar-dictionaries-en from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Carnegie Mellon University's link grammar parser (English dictionary) | https://www.abisource.com/projects/link-grammar/
- Ubuntu apt - python-link-grammar-examples - 5.12.3~dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: python-link-grammar-examples from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CMU's link grammar parser (Python examples) | https://www.abisource.com/projects/link-grammar/


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [ant](https://www.automicvault.com/pkg/brew/ant/) - Build dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [freeling](https://www.automicvault.com/pkg/brew/freeling/) - Shares av.db curated category or tags: cli, natural-language-processing, science.
- [juman](https://www.automicvault.com/pkg/brew/juman/) - Shares av.db curated category or tags: cli, natural-language-processing, science.
- [jumanpp](https://www.automicvault.com/pkg/brew/jumanpp/) - Shares av.db curated category or tags: cli, natural-language-processing, science.
- [kytea](https://www.automicvault.com/pkg/brew/kytea/) - Shares av.db curated category or tags: cli, natural-language-processing, science.
- [sfst](https://www.automicvault.com/pkg/brew/sfst/) - Shares av.db curated category or tags: cli, natural-language-processing, 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.
- [abricate](https://www.automicvault.com/pkg/brew/abricate/) - Shares av.db curated category or tags: cli, science.
- [rocq-elpi](https://www.automicvault.com/pkg/brew/rocq-elpi/) - Local package facts share a topical domain. Shared terms: cli, language, parser, science.
- [equation-parser](https://www.automicvault.com/pkg/npm/equation-parser/) - Local package facts share a topical domain. Shared terms: cli, parser, science.
- [alevin-fry](https://www.automicvault.com/pkg/brew/alevin-fry/) - Local package facts share a topical domain. Shared terms: cli, processing, science.

## Combined YAML source

View the package source record on GitHub. [combined/link-grammar.yml](https://github.com/automic-vault/db/blob/main/combined/link-grammar.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
