Improve implementation of is_yelling

Thanks to feedback on irc://irc.mozilla.org/rust from sanxiyn and
SimonSapin (as well as others)