Info: Zenodo’s user support line is staffed on regular business days between Dec 23 and Jan 5. Response times may be slightly longer than normal.

Published August 27, 2023 | Version v0.5.1
Software Open

LSYS/LexicalRichness: v0.5.1

Description

What's Changed

  • Pass through within_sample parameter in vocd (fixes #80, @xhulianoThe1)
  • Fix CTTR equation (fixes #77)
  • Minor doc fixes
  • Fixed path to vocd image

LexicalRichness

To install: pip install lexicalrichness

Example usage

from lexicalrichness import LexicalRichness

# text example
text = """Measure of textual lexical diversity, computed as the mean length of sequential words in
                a text that maintains a minimum threshold TTR score.

                Iterates over words until TTR scores falls below a threshold, then increase factor
                counter by 1 and start over. McCarthy and Jarvis (2010, pg. 385) recommends a factor
                threshold in the range of [0.660, 0.750].
                (McCarthy 2005, McCarthy and Jarvis 2010)"""

lex = LexicalRichness(text)

lex.vocd_fig(
    ntokens=50,  # Maximum number for the token/word size in the random samplings
    within_sample=100,  # Number of samples
    seed=42,  # Seed for reproducibility
)

 

Full Changelog: https://github.com/LSYS/LexicalRichness/compare/v0.4.1...v0.5.1

Notes

If found this software useful for your work, please cite it as below.

Files

LSYS/LexicalRichness-v0.5.1.zip

Files (608.4 kB)

Name Size Download all
md5:427edbce60ffcd11c68877bddd16103c
608.4 kB Preview Download

Additional details

Related works