The C4C algorithm is available for download from our GitHub repository using the link below.
C4C comes ready to use out-of-the-box, however, you may need to make changes to meet your
consists of three configuration elements: solution is fully customizable to meet your operational needs, this said, the solution is ready to use as is without the need to make any changes.
The customizable elements of the solution are listed below;
Questions
Algorithms
Exceptions:
Info |
---|
questions.jsonThe 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.