Synopsis:
   $beforew(<word> <text>)

Technical:
   This function returns its input string, minus all words after the given
   word ($beforew()).  It is analogous to $before(), operating on whole
   words instead of characters.  It searches only for the first occurrence
   of the given word.

Practical:
   This returns the part of the input text that is before the first instance
   of the given word.  This is probably most useful for internal parsing
   inside scripts; a variable might hold certain parameters, of which only
   certain ones might be useful at a particular time.  If the given word
   does not appear in the input text, nothing is returned.

Returns:
   beforew: input list before first instance of given word

Examples:
   $beforew(foobar one two foobar my shoe)   returns "one two"
   $beforew(booya one two foobar my shoe)    returns ""  (empty string)

