Skip to main content

Word frequency checker based on Wikipedia corpus written in Rust

Project description

Logo

Word frequency checker based on Wikipedia corpus written in Rust

license Python OS Build PyPi

Table of Contents

About The Project

Rust library for checking against the Wikipedia word frequency corpus. The library is fast, memory efficient, and secure. The data structure used to do full lookups is the Hashmap. A Suffix Array data structure suffix is used to perform quick lookups of sub-patterns over the dictionary.

Built With

Installation

pip3 install pywordfreq

Usage

import pywordfreq


# On the first use of library, the engine is loaded with the dictionary.
# It is worth to mention that there is a significant ammount
# of memory overhead for the engine.

# This function checks the frequency of the word "the" in the corpus
pywordfreq.full_frequency(
    word="the",
)
# This function checks the frequency of the word "inter" as a pattern
# in other words of the dictionary.
pywordfreq.partial_frequency(
    pattern="inter",
)

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Gal Ben David - gal@intsights.com

Project Link: https://github.com/intsights/pywordfreq

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pywordfreq-0.4.2-cp311-none-win_amd64.whl (4.7 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

pywordfreq-0.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pywordfreq-0.4.2-cp311-cp311-macosx_11_0_arm64.whl (4.7 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pywordfreq-0.4.2-cp311-cp311-macosx_10_7_x86_64.whl (4.7 MB view hashes)

Uploaded CPython 3.11 macOS 10.7+ x86-64

pywordfreq-0.4.2-cp310-none-win_amd64.whl (4.7 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

pywordfreq-0.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pywordfreq-0.4.2-cp310-cp310-macosx_11_0_arm64.whl (4.7 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pywordfreq-0.4.2-cp310-cp310-macosx_10_7_x86_64.whl (4.7 MB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

pywordfreq-0.4.2-cp39-none-win_amd64.whl (4.7 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

pywordfreq-0.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pywordfreq-0.4.2-cp39-cp39-macosx_11_0_arm64.whl (4.7 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pywordfreq-0.4.2-cp39-cp39-macosx_10_7_x86_64.whl (4.7 MB view hashes)

Uploaded CPython 3.9 macOS 10.7+ x86-64

pywordfreq-0.4.2-cp38-none-win_amd64.whl (4.7 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

pywordfreq-0.4.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pywordfreq-0.4.2-cp38-cp38-macosx_11_0_arm64.whl (4.7 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

pywordfreq-0.4.2-cp38-cp38-macosx_10_7_x86_64.whl (4.7 MB view hashes)

Uploaded CPython 3.8 macOS 10.7+ x86-64

pywordfreq-0.4.2-cp37-none-win_amd64.whl (4.7 MB view hashes)

Uploaded CPython 3.7 Windows x86-64

pywordfreq-0.4.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pywordfreq-0.4.2-cp37-cp37m-macosx_11_0_arm64.whl (4.7 MB view hashes)

Uploaded CPython 3.7m macOS 11.0+ ARM64

pywordfreq-0.4.2-cp37-cp37m-macosx_10_7_x86_64.whl (4.7 MB view hashes)

Uploaded CPython 3.7m macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page