Added a function to retrie the vocabulary as an array