Skip to main content

Cysgor

Cysill wrapper to score Welsh texts' grammaticality. As it connects to the Cysill API, ensure to have a working internet connexion before using it.

As a CLI

There are two ways to use the CLI, either by entering a text file's path, or directly a text. The CLI returns a string of numbers representing the grammaticality score of the text.

# With a text as a positional character
cysgor "Mae hen gwlad fy tadau yn annwyl i mi!"
# With a -p or --path flag
cysgor --path src/cysgor/assets/text-sample.txt

or alternatively with the pipe operator:

cat src/cysgor/assets/text-sample.txt | cysgor 

As a library

One can also use this package as a python library:

from cysgor import get_score, get_mistakes

# get the scores
df["scores"] = df["texts"].apply(get_score)
# returns a list of mistakes for each text
df["mistakes"] = df["texts"].apply(get_mistakes)

Metadata

Release files for cysgor 0.1.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 cysgor 0.1.0
File Size Uploaded Provenance Actions
cysgor-0.1.0.tar.gz 3.1 MB Without provenance Details for cysgor-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cysgor 0.1.0
File Interpreter ABI Platform Actions
cysgor-0.1.0-py3-none-any.whl Python 3 none any Details for cysgor-0.1.0-py3-none-any.whl

Total release size: 6.3 MB

Release files / cysgor-0.1.0.tar.gz

Download URL cysgor-0.1.0.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
597441e426f255aa05a728a10fe901caa5052d1844c369a0c052b2dd96636eaf
BLAKE2b-256 checksum
How to use checksums
b0ea13b40a7ad49c58e28febf2ea697435ef5ac7e2eb7811ecbce59dc90e5c69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / cysgor-0.1.0-py3-none-any.whl

Download URL cysgor-0.1.0-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
111796792f05f2ee968ae00b60dd79afa47586dc8aff6143fc0a61944534e50f
BLAKE2b-256 checksum
How to use checksums
10db89e2794ec8d50628d6c781ea6c2b99dd8d6f445a647e0db41b99b91bd57b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Security for cysgor 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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