input: Write a python function to sort a given list of strings based on the length of the words in ascending order.
  assert sort_by_word_length(["apple", "banana", "cherry", "date"]) == ["date", "apple", "banana", "cherry"]
  assert sort_by_word_length(["python", "java", "c", "haskell", "go"]) == ["c", "go", "java", "python", "haskell"]
  assert sort_by_word_length(["short", "tiny", "medium", "longest", "longer"]) == ["tiny", "short", "medium", "longer", "longest"]
output: def sort_by_word_length(words):
      return sorted(words, key=len)