<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def word(ctx, text, number, by_spaces=False):
 """ Extracts the nth word from the given text string """

    return word_slice(ctx, text, number, conversions.to_integer(number, ctx) + 1, by_spaces)