Rulewise

v0.1.0
io.github.malithJayasinghe2000/rulewise Checked 3 days ago Published 17 days ago

Warns developers which Sri Lankan laws apply to what they build.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_fact_questions

List the facts check_legal_risks understands, grouped, each with the question it answers. Call once before check_legal_risks.

get_rule

Get one rule in full, including the exact quote from the law and its official source link. Use it to show proof for a warning.

ParameterTypeDescription
rule_id *stringrule_id from a check_legal_risks warning

get_checklist

Get a law checklist for the product, for example the PDPA 2027 checklist: the rules of that law that apply to these facts, each with what to look for in the code (look_for) or ask the user (ask). Use it when the user asks whether their project is ready for the PDPA. Send country codes and facts only. Mark each item Found (with file and line), Missing or Can't tell from code; never give a score.

ParameterTypeDescription
facts *List of the facts that are true, from get_fact_questions
users_in *ISO country codes where users are, as the user said, e.g. ['LK']
company_inISO country code where the company (or maker) is, e.g. 'LK'
lawstringWhich checklist: 'pdpa'
processing_inISO country codes where data is stored or processed