Skip to content

πŸ› οΈ 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 πŸ”’

License

Notifications You must be signed in to change notification settings

gerivanc/xphrase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

44 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ XPHRASE GENERATION

Expressive phrase generator β€” strong, modern, and minimalist.
Built entirely in Python for CLI environments on Linux and Windows.


🧠 PROJECT OVERVIEW

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 100% in Python
  • πŸ–₯️ CLI-compatible for Linux and Windows
  • 🌐 Future-ready for HTML interface integration

πŸ“¦ FEATURES

  • Generates phrases with 3 to 21 words
  • Words are randomly selected from Portuguese, English, and German word banks
  • Each word is interlinked with:
    • At least one special character: !@#$%^&*()_+-=[]{}|;:,.<>?~\\
    • At least one digit: 0123456789
  • The last character of the final word is always uppercase
  • Output example:
    ice8cafΓ©*intentos7vermeideN

πŸ› οΈ REQUIREMENTS

  • Python 3.8+
  • No external dependencies
  • Works on:
    • βœ… Linux (Debian, Ubuntu, Arch, etc.)
    • βœ… Windows (PowerShell, CMD)

πŸ“œ Disclaimer

Do not attempt to memorize the passwords generated by this tool. Instead, use a reliable password manager, such as BitwardenΒ©, which I personally recommend. The only password you should memorize is the master password for your password manager's vault, created with a strong combination of uppercase and lowercase letters, numbers, and special characters. Enable two-factor authentication (2FA) whenever possible to enhance security. A great option for managing your 2FA is Ente Auth , a free, open-source, and cross-platform app that provides end-to-end encrypted backups. Ente Auth ensures your 2FA codes are secure and synced across devices, with externally audited encryption, offering robust protection for all your accounts that support 2FA.


πŸ’Ύ Installation

  1. No additional dependencies are required, as the project uses only Python standard libraries.
  2. Ensure you have Python 3.8 or higher installed.
  3. Clone the repository:
git clone https://github.com/gerivanc/xphrase.git
cd xphrase

πŸ“Ÿ Command Line Interface - CLI

πŸ›  Support for CLI arguments - Command line usage:

Generates 1 sentence (interactive mode):

python xphrase.py

Generates 5 sentences:

python xphrase.py --count 5

Sentences with 5-10 words:

python xphrase.py --min 5 --max 10 

Show version:

python xphrase.py --version

Explicit interactive mode:

python xphrase.py --interactive 

Simple generation:

python xphrase.py --count 3

Longer sentences:

python xphrase.py --min 10 --max 15 --count 2

πŸ” GENERATION RULES

  • Phrase length: 3 to 21 words
  • Each word must include:
    • 1+ special character
    • 1+ digit
  • Final word must end with a capital letter
  • Language order is randomized

πŸ§ͺ EXAMPLES:

Minimum and maximum word count argument for generating sentences:

python xphrase.py --min 2 --max 2

Generated phrase:

mainlymaintainmaintenancemajormajoritymakemakermakeupmalemallmanmanage,2pensΓ£O

Simple generation:

python xphrase.py --count 1

Generated phrase:

investinvestigateinvestigationinvestigatorinvestmentinvestorinviteinvolveinvolvedinvolvementIraqiIrish^0themthemethemselvesthentheorytherapytherethereforethesetheythickthinthing{9benfazejo_6depender%5Lauf%4employeeemployeremploymentemptyenableencounterencourageendenemyenergyenforcementengage*1Schaf*3petphasephenomenonphilosophyphonephotophotographphotographerphotographyphysicalphysicallyphysician.1turbO

πŸ“ FILE STRUCTURE

xphrase/
β”œβ”€β”€ .github/
β”‚   └── ISSUE_TEMPLATE
β”‚       β”œβ”€β”€ bug_report.md
β”‚       β”œβ”€β”€ config.yml		
β”‚       └── issue_template.md
β”‚   └── workflows/
β”‚       β”œβ”€β”€ pypi-publish.yml
β”‚       └── python-app.yml
β”‚
β”œβ”€β”€ data/
β”‚		β”œβ”€β”€ __init__.py
β”‚		β”œβ”€β”€ english_words.py
β”‚		β”œβ”€β”€ german_words.py
β”‚		└── portuguese_words.py
β”‚
β”œβ”€β”€ docs/
β”‚		β”œβ”€β”€ .nojekyll
β”‚		β”œβ”€β”€ CNAME
β”‚		β”œβ”€β”€ _config.yml
β”‚		└── index.html		
β”œβ”€β”€ tests/
β”‚		β”œβ”€β”€ __init__.py
β”‚		└── test_xphrase.py
β”‚
β”œβ”€β”€ CHANGELOG.md
β”œβ”€β”€ CONTRIBUTING.md
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ SECURITY.md
β”œβ”€β”€ pyproject.toml 
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ setup.py
β”œβ”€β”€ word_manager.py
└── xphrase.py

πŸ“š WORD BANK SPECS

  • It contains 4,000 specific and unique words, selected from the vocabulary of three different languages.
  • This project was created by selecting words to generate sentences in three languages: English, Portuguese, and German.
  • All words are stored in separate .txt files inside the data/ folder.
  • Words are randomly selected and mixed across languages.
Language Word Count
English 1,334
Portuguese 1,333
German 1,333

🧰 FUTURE ROADMAP

  • 🌐 HTML interface (web version)
  • πŸ“¦ Packaging for PyPI
  • πŸ§ͺ Unit tests and coverage

🀝 CONTRIBUTING

Contributions are welcome! Please follow the guidelines in CONTRIBUTING.md.


πŸ“ Release Notes

See the RELEASE.md for detailed release notes for each version.


πŸ“’ Reporting Issues

Help us improve XPhrase Generation by reporting bugs or suggesting enhancements to project. To report a bug, suggest a feature, or ask a question:

  1. Go to the Issues tab.

  2. Click New issue.

  3. View the available options and select to: Report Bug and/or Report Issue. For security vulnerabilities, please follow our Security Policy.


🐞 Reporting Bugs

If you encounter a bug in the XPhrase Generation, please report it using our dedicated Bug Report template. This template ensures that your report includes essential details, such as steps to reproduce, environment information, and logs, enabling us to address issues efficiently. For other types of contributions or inquiries, refer to our CONTRIBUTING.md.


πŸ›‘οΈ Security

For security vulnerabilities, follow the process in SECURITY.md instead of opening a public issue. We recommend using a password manager and enabling 2FA for enhanced security.


πŸ“… Changelog

See the CHANGELOG.md for a detailed history of changes to this project.


πŸ“œ License

This repository is licensed under the MIT License.


πŸ’¬ CONTACT

E-mail: [email protected]
Location: Brazil
Feel free to reach out for collaboration or feedback!


Copyright Β© 2025 Gerivan Costa dos Santos

XPhrase Generation β€” Expressive phrases. Strong logic. Minimalist design Β© 2025

About

πŸ› οΈ 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 πŸ”’

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages