... | ... | @@ -4,13 +4,13 @@ Local questions |
|
|
---------------------
|
|
|
Local questions are very simple questions. They work by matching words, counting how many matched and returning a response. The advantages are that they are fast, can have meta information (such as priority, required permission, ...) but are limited in pattern matching. If you need to create a question that is simple without variable data, it is best to choose this.
|
|
|
|
|
|
###What will you need?
|
|
|
### What will you need?
|
|
|
Everything related to local questions is located in `be.maximvdw.qaplugin.question.*`
|
|
|
The basic thing you need is a `Question` object. Every question has one or more `QuestionLine`'s:
|
|
|
these are just normal questions or matches like you put them in the configuration. But you can assign more
|
|
|
meta information to them like setting them as a word, making them required, ... .
|
|
|
|
|
|
###Creating a Question object
|
|
|
### Creating a Question object
|
|
|
|
|
|
#### Simple question and response
|
|
|
```
|
... | ... | |