https://github.com/joelalejandro/carmen
Carmen is a TypeScript-driven poetess.
https://github.com/joelalejandro/carmen
Last synced: about 1 month ago
JSON representation
Carmen is a TypeScript-driven poetess.
- Host: GitHub
- URL: https://github.com/joelalejandro/carmen
- Owner: joelalejandro
- License: mit
- Created: 2019-07-14T22:52:27.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T06:10:08.000Z (almost 4 years ago)
- Last Synced: 2025-04-01T07:01:40.810Z (about 2 months ago)
- Language: TypeScript
- Homepage: https://she-is-carmen.now.sh/
- Size: 111 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# carmen
Carmen is a TypeScript-driven poetess, built using [WordBot](https://noopschallenge.com/challenges/wordbot) and [`rhymes`](https://github.com/words/rhymes).
## How does she works?
1. _She gets inspired:_ Before starting to write, Carmen likes to recall words into her mind. So, she asks for the WordBot for seed words in groups of 100: nouns, verbs, adjectives, moods. She also has some interjections, rhetorical words and exclamations.
2. She tries to write a line. If she can find a rhyme for it, she'll keep it. Otherwise, she'll keep trying until something comes up.
3. She tries to write another line. Again, if she can find a rhyme for it, she'll keep it. Otherwise, she'll keep trying until something comes up.
4. With the two previous rhymes, she'll complete a ballad stanza with the form ABAB.## What's it like?
```ts
import Poetess from "carmen";const carmen = new Poetess();
carmen.inspire().then(() => {
const { lines } = carmen.writeStanza();
console.log(lines);
});
```## Where I can see her work?
She's put up a website on her own. If you pay her a visit, [she'll give away a unique poem just for you](https://she-is-carmen.now.sh).