Many artificial intelligence systems take a lot of code and technical expertise in order to write. To get started, any type of neural network is best written in Python because it has the largest support for ML using the PyTorch or Tensorflow libraries. 

Decision trees can be written in many ways, but the most common is writing a class for a node and extending the node for different functionalities.

Rule based systems are very much per-case code.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence