Skip to main content

Paraphrasing via google translate

Project description

paraphrase_googletranslate

python_version PyPI downloads/month

Description

Paraphrasing via google translate

Install

pip install paraphrase_googletranslate
# or
pip3 install paraphrase_googletranslate

Usage

from paraphrase_googletranslate import Paraphraser

original = '"The quick brown fox jumps over the lazy dog" is an English-language pangram—a sentence that contains all of the letters of the English alphabet. Owing to its brevity and coherence, it has become widely known. The phrase is commonly used for touch-typing practice, testing typewriters and computer keyboards, displaying examples of fonts, and other applications involving text where the use of all letters in the alphabet is desired.'

phraser = Paraphraser(random_ua=True)

rephrased = phraser.paraphrase(original)

print(original)
print(rephrased)

#This will print:

#"The quick brown fox jumps over the lazy dog" is an English-language pangram—a sentence that contains all of the letters of the English alphabet. Owing to its brevity and coherence, it has become widely known. The phrase is commonly used for touch-typing practice, testing typewriters and computer keyboards, displaying examples of fonts, and other applications involving text where the use of all letters in the alphabet is desired.

#"The quick brown fox jumps over the lazy dog" is an English-language pangram a phrase that contains all the letters of the English alphabet. Because of its brevity and consistency, it has become widely known. The phrase is commonly used to practice typing to touch, trying typewriters and computer keyboards, showing examples of sources, and other applications involving the use of text where all the letters of the alphabet is desired.

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

paraphrase_googletranslate-0.0.3.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

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