TODO: Currently there is no strict style guide for responses.
However, a good example is Can pets be vegan?
The responses are located in knowledge/responses
in .md
files.
The easiest way to modify an existing response is via GitHub. You must be logged into GitHub to do this. The following GIF shows how to make these modifications.
On the response .md
file which you wish to edit:
- Click "Edit this file" button around the top right of the file text - this looks like a pen/pencil shaped icon for most.
- Make your changes in the editing box.
- Describe the changes you made in a commit message at the bottom. Make sure to provide an informative description of the changes you made, and why.
- Click the "Propose changes" button at the bottom.
- On the next screen, click "Create pull request".
- On the next screen, click "Create pull request" again.
After this, a maintainer of this project will approve/reject the changes you made. Please be as descriptive as possible in the comments of your pull request to help speed up this process!
In order to add a new myth/response, two files must be created.
knowledge/myths/<myth>.yaml
knowledge/responses/<myth>.md
This file contains the general information needed to match and catalogue this myth. This is covered in the repo README.md
but is covered again here, with "Plants feel Pain" as an example:
key: plants_feel_pain
title: Plants Feel Pain
full_comment: true
link: <URL>
examples:
- what if plants feel pain
- plants feel pain too
- how do you know plants don't feel pain
key
is the unique identifier for this argument. The response text inknowledge/responses
must have the filename:<key>.md
.title
is the formatted title for this argument.full_comment
is a boolean which indicates whether or not the full response should be posted. If this isfalse
then the most similar sentence to the input in the response text is selected (along with the proceeding 5 sentences). If this isfalse
then there should be no markdown formatting as this is currently not supported.link
an optional link to highlight the argument title with in the response, such as a YouTube video. If there is no link, this must be set tonan
.examples
the example sentences/phrases which should link to this argument. These examples make up the "training set" for the nearest neighbor classifier. Try and add as many varied examples as you can think of for your myth/argument.
This file is where the response text is taken from. It must have the filename <key>.md
specified in the YAML file above.
If full_comment
is set to true
in the YAML file, this can use the Reddit markdown formatting.