Writing a simple expert system in Prolog | Hacker News Reader