Skip to main content

Formal Writing Checker

A script for raising some warnings to you when writing formal documents.

Warnings are raised for:

  • sentence length: 30 words (can be changed)
  • passive voice
  • rare terms? NOT IMPLEMENTED

Installation

You can install this package from:

  • PyPI: pip install formal-writing-checker
  • GitHub: pip install git+https://github.com/MartinoMensio/formal-writing-checker.git

This package requires the en_core_web_lg from spacy, which you can install with one of the following:

  • formal-writing-checker-install
  • python -m spacy download en_core_web_lg

Usage

Once installed, the script is available as

formal-writing-checker "Let's say I am told to check this sentence. Why am I using the passive voice anyways?"

# Or use a text file as input
cat > example_long_text.txt <<EOF
On offering to help the blind man, the man who then stole his car, had not, at that precise moment, had any evil intention, quite the contrary, what he did was nothing more than obey those feelings of generosity and altruism which, as everyone knows, are the two best traits of human nature and to be found in much more hardened criminals than this one, a simple car-thief without any hope of advancing in his profession, exploited by the real owners of this enterprise, for it is they who take advantage of the needs of the poor.
EOF

cat example_long_text.txt | formal-writing-checker

# or in a pipe after any other command (e.g. to take as input a latex files)
detex example_latex.tex | formal-writing-checker

Options

The behaviour can be customised with the following options (can be seen with formal-writing-checker --help):

  -m, --max-sentence-length INTEGER
                                  Maximum sentence length  [default: 30]
  -s, --use-statistical-sentencizer
                                  Use statistical sentencizer instead
                                  of rule-based sentencizer  [default: False]

  -l, --ignore-sentence-length    Disable passive voice check  [default:
                                  False]

  -p, --ignore-passive-voice      Disable passive voice check  [default:
                                  False]

Deploy utils

python setup.py sdist
# upload to pypi
twine upload dist/formal_writing_checker-0.0.4.tar.gz

Metadata

Release files for formal-writing-checker 0.0.4

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

Source distribution (sdist)

Source distribution for formal-writing-checker 0.0.4
File Size Uploaded Provenance Actions
formal_writing_checker-0.0.4.tar.gz 4.6 kB Without provenance Details for formal_writing_checker-0.0.4.tar.gz

Release files / formal_writing_checker-0.0.4.tar.gz

Download URL formal_writing_checker-0.0.4.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5390413db028ab970da1d56b8b3685a525dfc99eb1b5572985ad83ea487b3828
BLAKE2b-256 checksum
How to use checksums
980cc87f9dfa45831071bea8a2bbf8e01e31ddd95fb328a8024f4fd5d21c55f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.13

Security for formal-writing-checker 0.0.4

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.

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