Skip to main content

Matching texts across languages.

Project description

String Pod

pypi python Build Status codecov

Matching texts across languages

Features

  • Normalize text with options
  • Check if a text contains a substring

Usage

Contains

stringpod contains "Hello, world!" "world"
stringpod contains "  Hello, world!  " "lo, wor" --options "strip_whitespace,ignore_case"
stringpod contains "歌曲(純音樂)" "(纯音乐)" --options "ignore_chinese_variant"

Normalize

stringpod normalize "Hello, World!!!"
stringpod normalize "    Hello,   World!!!" --options "all"
stringpod normalize "歌曲(純音樂)" --options "ignore_chinese_variant"

Normalizer Options

  • strip_whitespace: Strip whitespace (leading and trailing) from the text (default: False)
  • remove_whitespace: Remove whitespace (all whitespace characters) from the text (default: False)
    • strip_whitespace will not be needed if remove_whitespace is True
  • ignore_chinese_variant: Ignore Chinese variant (default: False)
  • ignore_case: Ignore case (default: False)
    • English will be converted to lowercase
    • Chinese will be converted to simplified Chinese
  • nfkc: Normalize to NFKC (default: True)

Number Parser

stringpod number "One hundred and twenty-three"
stringpod number "One hundred and twenty-three" --language "en"

Development

poetry install -E dev -E docs -E test

Credits

This package was created with Cookiecutter and the waynerv/cookiecutter-pypackage project template.

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

stringpod-0.2.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stringpod-0.2.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file stringpod-0.2.1.tar.gz.

File metadata

  • Download URL: stringpod-0.2.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for stringpod-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e207c93768c082372335c5166dd5bc50d47468f1d811f4fdec7659497f7d89d7
MD5 09f1c3f0a621d2e772babb54c64b69da
BLAKE2b-256 03f793c59e0702af4822d91ec25a97149c406a70ac6a75c1930fc3fef9f15161

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringpod-0.2.1.tar.gz:

Publisher: release.yml on jyyyeung/stringpod

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stringpod-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: stringpod-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for stringpod-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4ea7a8c5b1dbf9d4c53165ef26b6386d9107be853af1c20a32637b1cd78817a
MD5 f663b0ddc4a3b542da38c5e10d91ab6d
BLAKE2b-256 f7793132e84432593751acee62230fa01a182440fe2db44bee6c7dd45a907fcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for stringpod-0.2.1-py3-none-any.whl:

Publisher: release.yml on jyyyeung/stringpod

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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