Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackmcdade/synthwave-generator
Generate Synthwave band names. For science.
https://github.com/jackmcdade/synthwave-generator
generator laravel retro synthwave tailwind-css
Last synced: 3 months ago
JSON representation
Generate Synthwave band names. For science.
- Host: GitHub
- URL: https://github.com/jackmcdade/synthwave-generator
- Owner: jackmcdade
- Created: 2019-08-10T03:41:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T06:51:08.000Z (about 2 years ago)
- Last Synced: 2024-10-12T10:46:31.189Z (3 months ago)
- Topics: generator, laravel, retro, synthwave, tailwind-css
- Language: PHP
- Homepage: https://synthwavegenerator.com
- Size: 2.94 MB
- Stars: 24
- Watchers: 2
- Forks: 3
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Synthwave Name Generator
## How it works
All the magic happens in `app/NameGenerator.php`. Additional nouns can be added to the `$nouns` array. You can add some modifiers to a noun to ensure it's first, last, doesn't end up next to existing names (like "Arcade High", for example), has a specific separator, and so on.
**Explanation of all the possible modifiers on a noun:**
``` php
$nouns = [
[
'word' => 'Streets of', // The noun
'prefix' => true, // True to ensure it's the first word in the name
'suffix' => false, // True to ensure it's the last word in the name
'not' => 'Rage', // Add other nouns you want to ensure is *not* next to. Can be an array or string.
'plural' => false, // False to prevent the word from being pluralized
'seperator' => ' ', // Force a specific seperator between words
],
]
```**The name is generated by a series of dice rolls:**
1. There is always at least one noun, but if the roll succeeds there may be a second word.
2. If there are two words, they may be mashed together as a portmanteau or separated with a space or string provided by the first noun.
3. The whole word might be pluralized.
4. And finally there may be a year slapped on the end.