Skip to main content

Utility to assist with string comparisons.

Project description

String Comparison

Text normalization for string comparison in Python.

This maps a Unicode code point key represented as an integer to a corresponding ASCII character mapping. In some cases such as Hebrew niqqud & cantillation, we remove the character altogether or replace certain punctuation with a space.

In addition, some characters are removed prior to normalization. For example, Unicode control chars.


This project requires Python 3.7+


To install with pip

pip install string_comparison


import string_comparison
normalized = string_comparison.normalize("é")
assert normalized == "e"

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

string_comparison-1.1.0.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

string_comparison-1.1.0-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

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