Skip to main content

Metamorph text into other reworded text.

Project description

metamorph

IMG

First line is the input followed by colorized suggestions.

Metamorph easily fixes typos and suggests alternative wordings by repeatedly translating the text into different languages and in the end to the desired language.

Doc: metamorph --help

PyPI version downloads

Stable Unstable
workflow test
Coverage Status Coverage Status
Codacy Badge Codacy Badge
Codacy Badge Codacy Badge
Documentation Documentation

Documentation

Versions

Stable

pip install metamorph [--user] [--upgrade]

Dev

pip install --index-url https://test.pypi.org/simple/ metamorph [--user] [--upgrade]

Configuration

For a list of parameters run metamorph -h.

The root node flow can have multiple different starting languages (given start is None).

translator: "GoogleTranslator"
start: "de"
goal: "de"

flow:
  de:
    fr:
      es:
        fr:
    de:
      es:
      fr:
        sv:
  fr:
    en:
  en:
  fi:
    de:
      fr:
        es:
          fr:
      de:
        es:
        fr:
          sv:
  sv:

This exemplary configs/config.yaml will produce following results (note -sd for diagrams and -c for config, while most command line parameters take precedence over config (-gs here)). A list of translators can be found here https://github.com/nidhaloff/deep-translator.

metamorph -i -sd -gs en -c config.yaml

DIAG

(GoogleTranslate gets abbreviated to only capital letters GT)

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

metamorph-0.0.15.tar.gz (21.7 kB view hashes)

Uploaded Source

Built Distribution

metamorph-0.0.15-py3-none-any.whl (22.0 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