Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quotes around symbols #27

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,20 @@ or, if you're writing a long string of single words, you can use 'split'
"emotion" : "happy sad reflective morose proud".split(" "),
```

Rules can also contain expansion symbols, words surrounded by #'s:
```
mainCharacter: ["Brittany the Wombat"],
story : ["This is a story about #mainCharacter#"]
Rules can also contain expansion symbols, words surrounded by `#`s:
```json
{
"mainCharacter": ["Brittany the Wombat"],
"story" : ["This is a story about #mainCharacter#"]
}
```

Expansion symbols can have modifiers. Modifiers can change something about the string expansion of that symbol.
`#animal.capitalize#` or `#animal.a#` or `#animal.s#`
```
name: ["Brittany"],
animal: ["wombat"],
story : ["This is a story about #name# the #animal.capitalize#"]
```json
{
"name": ["Brittany"],
"animal": ["wombat"],
"story" : ["This is a story about #name# the #animal.capitalize#"]
}
```