Pre-release
This release is a pre-release and may not be stable for production use.
LinguaF
LinguaF provides an easy access for researchers and developers to methods of quantitative language analysis, such as: readability, complexity, diversity, and other descriptive statistics.
Usage
documents = [
"Pain and suffering are always inevitable for a large intelligence and a deep heart. The really great men must, I think, have great sadness on earth.",
"To go wrong in one's own way is better than to go right in someone else's.",
"The darker the night, the brighter the stars, The deeper the grief, the closer is God!"
]
Descriptive Statistics
from linguaf import descriptive_statistics as ds
ds.words_per_sentence(documents)
# Output: 15
Lexical Complexity
from linguaf import lexical_complexity as lc
lc.mean_dependency_distance(documents)
# Output: 2.307306255835668
Lexical Diversity
from linguaf import lexical_diversity as ld
ld.log_type_token_ratio(documents)
# Output: 94.03574963462502
Readability
from linguaf import readability as r
r.flesch_kincaid_grade(documents)
# Output: 4.813333333333336
Install
Via PIP
pip install linguaf
Latest version from GitHub
git clone https://github.com/Perevalov/LinguaF.git
cd LinguaF
pip install .
Language Support
At the moment, library supports English and Russian languages for all the methods.
Open API
TBD
Citation
TBD
Metadata
Release files for linguaf 0.0.8b0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| linguaf-0.0.8b0.tar.gz | 13.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| linguaf-0.0.8b0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.3 kB
Release files / linguaf-0.0.8b0.tar.gz
| Download URL | linguaf-0.0.8b0.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2a94fa914886ac79a6c5b862c5168899d23afa312a2f3c7d70fc9b399132a85
|
|
BLAKE2b-256 checksum How to use checksums |
b510c98fef2c3806514054014cdfd7f88739469e118802618fdcc8ef23c3c0fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/56.2.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.4
|
Release files / linguaf-0.0.8b0-py3-none-any.whl
| Download URL | linguaf-0.0.8b0-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5e8e77d68a53bd45afa09ff65d16f61d2451e5704f584d67f2e2d7944b7c98b
|
|
BLAKE2b-256 checksum How to use checksums |
335cf506de47eba11bb27fe4d7e26b882ca6bcc0d4c28e5d9f7da545e673bafc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/56.2.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.4
|