Word selection mechanism.

Signed-off-by: Tihomir Gvero <tihomir.gvero@gmail.com>