switched generate_triggers to split on \W+ (non-word chars) instead of just \-+ (dashes)