def METHOD_NAME(
    self, start_anchor, end_anchor=None, include_trailing_whitespace=False
):
    """
    Selects the word corresponding to start_anchor. If end_anchor supplied, selects
    from start_anchor to the end of end_anchor. If include_trailing_whitespace=True
    then also selects trailing space characters (useful for delete).
    """
    start_index, end_index, last_space_index = self.anchor_to_range(start_anchor)
    if end_anchor is not None:
        _, end_index, last_space_index = self.anchor_to_range(end_anchor)
    if include_trailing_whitespace:
        end_index = last_space_index
    self.area.sel = Span(start_index, end_index)