Matching texts across languages.
Project description
String Pod
Matching texts across languages
- Documentation: https://jyyyeung.github.io/stringpod
- GitHub: https://github.com/jyyyeung/stringpod
- PyPI: https://pypi.org/project/stringpod/
- Free software: MIT
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_whitespacewill not be needed ifremove_whitespaceisTrue
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e207c93768c082372335c5166dd5bc50d47468f1d811f4fdec7659497f7d89d7
|
|
| MD5 |
09f1c3f0a621d2e772babb54c64b69da
|
|
| BLAKE2b-256 |
03f793c59e0702af4822d91ec25a97149c406a70ac6a75c1930fc3fef9f15161
|
Provenance
The following attestation bundles were made for stringpod-0.2.1.tar.gz:
Publisher:
release.yml on jyyyeung/stringpod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stringpod-0.2.1.tar.gz -
Subject digest:
e207c93768c082372335c5166dd5bc50d47468f1d811f4fdec7659497f7d89d7 - Sigstore transparency entry: 173481894
- Sigstore integration time:
-
Permalink:
jyyyeung/stringpod@79112150c780824b7a930c632d70fc27aaf0cf0c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jyyyeung
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@79112150c780824b7a930c632d70fc27aaf0cf0c -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4ea7a8c5b1dbf9d4c53165ef26b6386d9107be853af1c20a32637b1cd78817a
|
|
| MD5 |
f663b0ddc4a3b542da38c5e10d91ab6d
|
|
| BLAKE2b-256 |
f7793132e84432593751acee62230fa01a182440fe2db44bee6c7dd45a907fcd
|
Provenance
The following attestation bundles were made for stringpod-0.2.1-py3-none-any.whl:
Publisher:
release.yml on jyyyeung/stringpod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stringpod-0.2.1-py3-none-any.whl -
Subject digest:
d4ea7a8c5b1dbf9d4c53165ef26b6386d9107be853af1c20a32637b1cd78817a - Sigstore transparency entry: 173481895
- Sigstore integration time:
-
Permalink:
jyyyeung/stringpod@79112150c780824b7a930c632d70fc27aaf0cf0c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jyyyeung
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@79112150c780824b7a930c632d70fc27aaf0cf0c -
Trigger Event:
workflow_dispatch
-
Statement type: