Fast Linguistic Distance and Alignment Computation
Overview
A fast generalized edit distance and string alignment computation mainly for linguistic aims. As a generalization to the classic edit distance algorithms, the package allows users to define custom cost for every symbol's insertion, deletion, and substitution. The package also allows character combinations in any length to be seen as a single symbol which is very useful for International Phonetic Alphabet (IPA) transcriptions with diacritics. In addition to edit distance result, users can get detailed alignment information such as all possible alignment scenarios between two strings which is useful for testing, illustration or any further usage. Either the distance matrix or its long table form can be obtained and tools to do such conversions are provided. All functions in the package are implemented in 'C++' and the distance matrix computation is parallelized leveraging the 'RcppThread' package.
- Initial CRAN submission.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 6 (1 internal)includes a package overview page
- Examples that run
- 100%5 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/fncokg/lingdist on 2026-10-25.
Dependencies
Installing lingdist adds 2 packages (2 with compiled code, 2.1 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppThread 308 KB.
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.0Latest2023-10-12 · current release
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-10-12
- Total releases
- 1 / 3 yrs
- License
- GPL (>= 2) OSI
- Download size
- 9.0 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("lingdist")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.