Added API methods for word generation