{"categories":[{"label":"Linguistic","url":"https://skillfed.io/packages/category/text-processing-linguistic/2"}],"enrichment":{"capability":"Calculates lexical diversity metrics (TTR, MTLD, HDD, and others) on tokenized text to measure vocabulary richness and variation.","skillfed_tags":["nlp","text-analysis","linguistics"],"use_cases":["Assess vocabulary richness in student writing samples or language learner essays to measure linguistic development","Compare lexical diversity across different text corpora or authors to identify stylistic or quality differences","Analyze vocabulary variation in clinical speech samples to detect language disorders or cognitive decline","Evaluate machine-generated text quality by measuring how repetitive or diverse its vocabulary is","Conduct computational linguistics research requiring multiple diversity metrics on the same text"],"what_it_does":"Lexical-diversity is a Python library for computing quantitative measures of vocabulary diversity in text. It provides implementations of multiple diversity metrics\u2014including Type-Token Ratio (TTR), Root TTR, Log TTR, Mean Segmental TTR, Moving Average TTR, Hypergeometric Distribution D (HDD), and Measure of Lexical Textual Diversity (MTLD)\u2014each suited to different text lengths and analytical goals. The package includes convenience functions for tokenization and lemmatization, allowing users to preprocess text before calculating diversity scores.\n\nThe library is designed for linguistic research, computational text analysis, and language assessment tasks where understanding vocabulary breadth and repetition patterns is important. It has no external runtime dependencies, making it lightweight to install. However, the project is dormant\u2014last released in 2020 and last committed in 2023\u2014so users should not expect active maintenance or updates for newer Python versions or linguistic standards.","worth_installing":"Yes, if you need lexical diversity metrics for research or analysis and accept dormant maintenance. The package is lightweight, dependency-free, and offers multiple well-established metrics. However, verify compatibility with your Python version before relying on it in production, and consider whether a more actively maintained alternative better fits your timeline."},"id":"lexical-diversity","links":{"html":"https://skillfed.io/packages/lexical-diversity","md":"https://skillfed.io/packages/lexical-diversity.md","pypi":"https://pypi.org/project/lexical-diversity/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2020-03-04","license_spdx":null,"license_treatment":"permissive","name":"lexical-diversity","python_support":"unspecified","summary":"A simple program for calcuating lexical diversity"},"popularity":{"monthly_downloads":98665,"position":13066,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.1"}
