Skip to main content

Downloads PyPI badge License: MIT

string_treatment is a library for cleaning and adjusting words with inconsistency.

Overview

This library uses string similarity from rapidfuzz to group words with similar spelling into clusters, mapping each word to the most frequent (canonical) form within its cluster.

Since the clustering process may not always be perfectly accurate, the library can generate an interactive graph to help visualize the groupings.

example graph

Installation

Install the latest stable version from PyPI:

pip install string-treatment

Example

See the testing script in the root: test_standardize.py.

Metadata

Release files for string-treatment 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for string-treatment 2.0.0
File Size Uploaded
string_treatment-2.0.0.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for string-treatment 2.0.0
File Interpreter ABI Platform
string_treatment-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.2 kB

Release files / string_treatment-2.0.0.tar.gz

Download URL string_treatment-2.0.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b607e761395e4b722bf185795ea0a72a31b2d5f22762a3a145801f5f5f9966a6
BLAKE2b-256 checksum
How to use checksums
ec0be4ca13f46e008818b680fc9a398ce9a986dc5c2b03d4cf61e682c4f2abb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release files / string_treatment-2.0.0-py3-none-any.whl

Download URL string_treatment-2.0.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0189ea0f257b2adea1293a507849e2475de67ff8662881d37e3d8b0d02796ae5
BLAKE2b-256 checksum
How to use checksums
400a1c55e78a75841570af80204b7fe59094787b4f52b90dca173785151ece4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page