{"library":"parse-english","title":"English Natural Language Parser","description":"parse-english is a specialized parser that converts English natural language text into a Natural Language Concrete Syntax Tree (NLCST). It builds upon `parse-latin` by adding specific support for English language features like unit abbreviations. The current stable version is 7.0.0. This package is part of the unifiedjs ecosystem, which tends to have a moderate release cadence, with major versions often introducing breaking changes related to Node.js version support, ESM migration, or underlying NLCST structure updates. It's designed for developers who need fine-grained control over text processing at the syntax tree level, offering a programmatic interface to analyze text structure before further processing, such as with `retext-english` which wraps this project for a higher-level abstraction. Its key differentiator is its focus on low-level NLCST generation specifically for English, integrating with the broader unified ecosystem.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install parse-english"],"cli":null},"imports":["import { ParseEnglish } from 'parse-english'","import { ParseEnglish as Parser } from 'parse-english'","import type { RootNode } from 'nlcst'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { ParseEnglish } from 'parse-english';\nimport { inspect } from 'unist-util-inspect';\n\n// Create a new parser instance\nconst parser = new ParseEnglish();\n\n// The text to parse\nconst textToParse = 'Hello Mr. Smith. This is a sentence about the City of London and its worker\\'s rights.';\n\n// Parse the text into an NLCST syntax tree\nconst tree = parser.parse(textToParse);\n\n// Log the inspected tree to see its structure\nconsole.log(inspect(tree));\n\n// You can also access the root node directly for further processing\n// For example, to get the type of the root node:\n// console.log(tree.type);\n// To get the children of the root node:\n// console.log(tree.children);","lang":"typescript","description":"Demonstrates how to instantiate `ParseEnglish` and parse a string into an NLCST tree, then inspect its structure.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}