Added logic to get get words

Added logic to get get words