Skip to main content

A collection of advanced string manipulation functions for Python.

Project description

VastString Module

The VastString Module provides a collection of functions for performing advanced operations on strings. These functions can be used to tackle various tasks related to string processing, including text similarity measurement, pattern matching, and tokenization.

Included Functions:

  1. levenshtein_distance: Calculates the Levenshtein distance between two strings, measuring the minimum number of edits required to transform one string into another.

  2. soundex: Computes the Soundex code, a phonetic representation of a given string, useful for approximate string matching.

  3. jaro_winkler_distance: Computes the Jaro-Winkler distance between two strings, indicating their similarity with a higher weight on common prefixes.

  4. extract_substrings: Extracts all occurrences of a specified substring from a larger string.

  5. tokenize_string: Splits a string into tokens based on a given regular expression pattern, facilitating natural language processing tasks.

These functions can be utilized in a wide range of applications, from text processing to data cleaning and analysis. Whether you need to measure text similarity, extract specific patterns, or tokenize text for further analysis, this module provides a set of powerful tools to assist you in your projects.

Usage Example:

import vaststring

distance = vaststring.levenshtein_distance("kitten", "sitting")
print(distance)  # Output: 3

Project details


Download files

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

Source Distribution

vaststring-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file vaststring-0.1.0.tar.gz.

File metadata

  • Download URL: vaststring-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for vaststring-0.1.0.tar.gz
Algorithm Hash digest
SHA256 007a3b161c7f8aa34071f7ad04ae1f86e2b030f533ade53dbbe6afe65c0e77e0
MD5 98f821590098414eacd595559435aef4
BLAKE2b-256 3418858b8bd7643fbea6996514e302d065db4283e77103f7b301331b7ab1ae0b

See more details on using hashes here.

Supported by

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