word detector example