This is a script that was created as a course project at Rule-Based Machine Translation Summer School 2016 in Alacant, Spain. It is intended as a streamlined version of the process described in http://wiki.apertium.org/wiki/Learning_rules_from_parallel_and_non-parallel_corpora