Skip to content

A just for fun project that changes non-stopwords in a text with random synonyms. You could play a game like "What is this text about?", if you have, like, too much free time.

t4khosu/Synonymos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synonymos

If you have ever wanted to change a perfectly normal text into some gibberish, this tool is going to help you! Pass a wiki article URL, string or some text file path as parameter and all non-stopwords will be switched with some random synonyms. Since wiki articles can be quite long, only the summary will be "translated".

The README Introduction after Synonymos has striked:
If you have always cherished to deepen a perfectly convention text into some gibberish, this instrument is become to help oneself you! Excrete a wiki article Url, string or some text cha rge way as parameter and all non-stopwords will be throw with some random synonym. Since wiki article can be quite retentive, only the compendious will be "translated".

Setup

  • Python >= 3.8
  • Requirements: pip install -r requirements.txt

Usage

Handle a simple string

python syn.py -s <text>

Handle a .txt file

python syn.py -t <file path>

Handle a wikipedia entry

python syn.py -w <wiki title>

Set an output directory

python syn.py -s <some string> -o <output dir>

The output file will be called .../syn.txt

Wiki article example

Donald John Trump (born June 14, 1946) is the 45th and current president of the United States. Before entering politics, he was a businessman and television personality. Trump was born and raised in the New York City borough of Queens and received an economics degree from the Wharton School.

Donald Wc Influence( inbred June 14, 1946) is the 45th and ruling president of the In Accord Circumstances. Forward make an entrance hat in the ring, he was a baron and small screen disposition. Lead was intrinsic and heightened in the Virgin York Civil community of Queen Dowager and collected an finance proportion from the Wharton Jail.

About

A just for fun project that changes non-stopwords in a text with random synonyms. You could play a game like "What is this text about?", if you have, like, too much free time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages