https://github.com/david-lor/ideology-mashup
Mashup tool to generate fictional (or real) ideologies by combining two ideologies or philosophies
https://github.com/david-lor/ideology-mashup
mashup mashup-bot python python3 pyyaml yaml
Last synced: 7 months ago
JSON representation
Mashup tool to generate fictional (or real) ideologies by combining two ideologies or philosophies
- Host: GitHub
- URL: https://github.com/david-lor/ideology-mashup
- Owner: David-Lor
- License: apache-2.0
- Created: 2020-03-22T11:17:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-14T10:21:19.000Z (about 5 years ago)
- Last Synced: 2025-02-03T23:54:53.259Z (9 months ago)
- Topics: mashup, mashup-bot, python, python3, pyyaml, yaml
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# IdeologyMashup
Mashup tool to generate ideologies by combining two ideologies or philosophies.
## Ideologies definition
Ideologies are defined on the [ideologies.yaml](ideologies.yaml) file, following the structure of the given examples.
Each ideology can have a `name` and/or a `prefix` (can have one of them or both).
The mashup is done by mixing all prefixes with all names, but a prefix and a name of a same ideology won't be mixed.
For example, given the following YAML file:
```yaml
ideologies:
- name: socialism
prefix: social
- prefix: anti
- name: democracy
```
Will result in:
```
Social-Democracy
Anti-Democracy
Anti-Socialism
```
## Usage
Until no CLI interface is provided, the mashup can be done running the following command:
```bash
# Assuming we are on project root path, and having a valid ideologies.yaml file:
python tools/generate_mashed_ideologies.py
# A file mashed_ideologies.txt is created
```
## Requirements
- Python >= 3.6
- Requirements listed on [requirements.txt](requirements.txt)
## Changelog
- 0.0.1 - Initial release
## TODO
- Add CLI interface
- Add a picture for each ideology
- Export mashed ideologies on ndjson