Add magic methods to vocabulary class.