Moved implementation of WordMap into an Internal module