Expressive phrase generator — strong, modern, and minimalist
XPhrase Generation is a multilingual phrase generator designed for command-line interface (CLI) usage. It creates expressive, randomized phrases using words from Portuguese, English, and German, interlinked with special characters and digits.
This project is:
Written entirely in Python for maximum efficiency and portability.
The principle of randomness enables the generation of over 12.6 trillion unique combinations by interconnecting words from three languages, along with the inclusion of special characters and numerical digits.
Designed for Linux and Windows command-line environments.
Generate single phrase: Asks: "generate between 3-21 words?", and generates one phrase with the specified word count (3-21 words).
Generate multiple phrases: First, you are asked to define the word range per sentence ('generate between 3 and 21 words?') and then the number of sentences ('generate between 5 and 10 sentences?'), in order to then generate multiple sentences with a consistent word count.
The CLI project has been fully converted to the web version of the HTML interface, maintaining the same phrase generation method, now accessible directly in your browser.
See different ways to generate your sentences. Generate sentences right now!
HTML interface (web version)
100% of the CLI project converted to the web browser
The same method for generating phrases, but in your browser
XPhrase Generation runs on:
No external dependencies required
Compatible with Debian, Ubuntu, Arch, and other distributions
Works with PowerShell and CMD
Clone the repository:
git clone https://github.com/gerivanc/xphrase.git
Go to the directory folder:
cd xphrase
After installation, navigate to the directory where the XPhrase Generation repository folder was installed, then choose one of the following options to generate the phrases:
Mode 'PYTHONPATH='. The parameter should be between 5 and 10 words long.:
PYTHONPATH=src python src/xphrase/main.py --count 5
Mode 'PYTHONPATH='. Interactive menu - generates unique and multiple phrases.:
PYTHONPATH=src python src/xphrase/main.py --interactive
Mode 'echo PYTHONPATH='. Defines the minimum and maximum number of words to be generated in the sentence (--min 5 --max 21).:
echo 'PYTHONPATH=src python src/xphrase/main.py "$@"' > xphrase.sh
chmod +x xphrase.sh
./xphrase.sh --min 5 --max 21
Mode 'echo PYTHONPATH='. Show which version of XPhrase Generation it is.:
echo 'PYTHONPATH=src python src/xphrase/main.py "$@"' > xphrase.sh
chmod +x xphrase.sh
./xphrase.sh --version
🛠️ To view ways to generate sentences: Access the Command line interface - CLI section, visit | Readme
The generator contains 4,000 specific and unique words, selected from the vocabulary of three different languages:
Example outputs:
run7Liebe!café2dream#vermeide9IntentoN
code3vermeide@ice8Liebe*intentos1caféZ
Found an issue? Have a suggestion?