This causes a `NameError: global name 'langList' is not defined` exception.

The syntax and langList variables need to be referenced with self.langList or self.syntax since they belong to the class.