UNPKG

@beshkenadze/eyecite

Version:

TypeScript library for extracting legal citations from text strings. A complete port of the Python eyecite library.

38 lines (32 loc) 1.2 kB
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [2.7.6] - 2024-01-14 ### Added - Initial TypeScript port of eyecite Python library - Complete feature parity with Python version 2.7.6 - Support for all citation types: - Full case citations - Short case citations - Supra citations - Id citations - Law citations (statutes) - Journal citations - Reference citations - HTML annotation support - Custom tokenizer extensions - Advanced citation filtering and disambiguation - Date range validation - Comprehensive test suite with 151 tests ### Changed - Ported from Python to TypeScript with modern ES modules - Uses Bun for package management and testing - Improved performance with optimized regex patterns ### Technical Details - Full support for reporters-db and courts-db data - Parallel citation detection with metadata sharing - Nested parenthetical handling - HTML markup preservation during annotation - Year range support (e.g., "1982-83") - Compatible with Node.js 18+