Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Questions

  2. Algorithms

  3. Exceptions:

Info

questions.json

The questions file contains two main elements that are the source for the algorithm file construction: questions and options.

Questions

The questions file is just an inventory of all possible questions (and their possible answers) that may be asked to a user. They are not listed in any particular order, as that's controlled by the algorithm. Currently (Feb 2021) the questions flow is as follows:

...

Additionally, the questions and their options (answers) are directly connected to POEditor terms, the service used for localization.

algorithm.json

The algorithm drives the logic of what question to ask next, based on the previous answer. All possible paths end with a family planning method list recommendation.

exceptions.json

The exceptions file restricts the methods to be returned based on various criteria. Currently, they include country, age, and breastfeeding.