What grammar recognition? it's a combination of keyword extraction and limited functionality. Using words like "time" or "clock" or "wake" for example would trigger the alarm clock functionality, it's not analyzing grammar because it doesn't have to since the limited actions involved have their specific vocabulary.