# Install stanford-parser with Homebrew, MacPorts

Statistical NLP parser. Version 4.2.0 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:stanford-parser
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install stanford-parser
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stanford-parser
```

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

## Package facts

- **Package key:** brew:stanford-parser
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/stanford-parser>
- **Version:** 4.2.0
- **Source summary:** Statistical NLP parser
- **Homepage:** <https://nlp.stanford.edu/software/lex-parser.shtml>
- **Repository:** <https://github.com/stanfordnlp/CoreNLP>
- **Upstream docs:** <https://nlp.stanford.edu/software/lex-parser.shtml>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://nlp.stanford.edu/software/stanford-parser-4.2.0.zip>
- **Last updated:** 2026-06-22T14:06:23-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- lexparser-gui.sh (cli)
- lexparser-lang-train-test.sh (cli)
- lexparser-lang.sh (cli)
- lexparser.sh (cli)
- lexparser-gui.sh (alias)
- lexparser-lang-train-test.sh (alias)
- lexparser-lang.sh (alias)
- lexparser.sh (alias)

## Dependencies

- openjdk

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.2.0
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://nlp.stanford.edu/software/lex-parser.shtml
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Stanford Parser is the Stanford NLP Group's Java parser package for constituency and dependency parsing. It is both a standalone distribution and part of the CoreNLP lineage.

### Project history

The CoreNLP release history identifies Stanford Parser, released on 5 December 2002, as the earliest open-source software now comprising CoreNLP. The parser documentation says the original version was mainly written by Dan Klein, with support code and linguistic grammar development by Christopher Manning, followed by extensive contributions from other Stanford NLP researchers.

### Adoption history

The parser became widely packaged because it exposed statistical parsing models through a Java distribution, command-line scripts, GUI tooling, and language wrappers. The official parser page even notes Homebrew installation for OS X, reflecting its role as a standalone CLI package before and alongside the unified CoreNLP distribution.

### How it is used

Users download the parser distribution and language models, then run parser scripts or Java classes to produce phrase-structure and dependency parses. The package includes PCFG, lexicalized dependency, lexicalized PCFG, shift-reduce, and neural dependency parser components depending on distribution and model selection.

### Why package nerds care

Package maintainers care about Stanford Parser because it represents the classic heavy NLP CLI package: model jars, Java launch scripts, language-specific assets, and optional GUI behavior. A system package makes it easier to call from shell scripts and wrapper libraries without manually assembling each release.

### Timeline

- 2002: Stanford Parser is released as open-source software.
- 2003: Klein and Manning publish the cited ACL paper for accurate unlexicalized parsing.
- 2014: Parser releases add shift-reduce and dependency improvements in the CoreNLP-era tooling.
- 2020: Standalone parser 4.2.0 retrains English models with treebank fixes.

### Related projects

- Stanford Parser is related to CoreNLP, Stanford POS Tagger, Stanford NER, shift-reduce constituency parsing, neural dependency parsing, Tregex/Tsurgeon, and language wrappers for Java, PHP, Python/Jython, Ruby, and .NET.

### Sources

- <https://nlp.stanford.edu/software/lex-parser.shtml: Stanford parser software page with download, release history, wrappers, and Homebrew note.>
- <https://stanfordnlp.github.io/CoreNLP/history.html: official release history naming Stanford Parser as the 2002 origin.>
- <https://stanfordnlp.github.io/CoreNLP/tools_lex_parser.html: official parser overview, package contents, authorship, and parser variants.>


## 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:** stanford-parser
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- MacPorts - stanford-parser: normalized package name match | MacPorts ports tree: textproc/stanford-parser/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.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [stanford-ner](https://www.automicvault.com/pkg/brew/stanford-ner/) - Shares av.db curated category or tags: cli, data, java, natural-language-processing, nlp.
- [stanford-corenlp](https://www.automicvault.com/pkg/brew/stanford-corenlp/) - Shares av.db curated category or tags: cli, data, java, natural-language-processing, nlp.
- [cabocha](https://www.automicvault.com/pkg/brew/cabocha/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.
- [mallet](https://www.automicvault.com/pkg/brew/mallet/) - Shares av.db curated category or tags: cli, data, java, natural-language-processing.
- [mecab](https://www.automicvault.com/pkg/brew/mecab/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.
- [mitie](https://www.automicvault.com/pkg/brew/mitie/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.
- [sentencepiece](https://www.automicvault.com/pkg/brew/sentencepiece/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.
- [yamcha](https://www.automicvault.com/pkg/brew/yamcha/) - Shares av.db curated category or tags: cli, data, natural-language-processing, nlp.

## Combined YAML source

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