codify
🇺🇸
/ˈkɑːdɪfaɪ/
🇬🇧
/ˈkəʊdɪfaɪ/
to put laws, rules, etc., into a written form or system
The new government decided to codify the ancient customs into a formal legal code.