1. This should be using the internal accessor `@@language_map` rather than `self.langs`.
2. `clazz` should be `klass` to follow convention.