Problem: What are the most important words?
pilot boat leaving the port
Answer: boat, leave, port

Problem: What are the most important words?
girl is searching a book in the library
Answer: book, library, search

Problem: What are the most important words?
a flock of golden fish in the warm sea
Answer:
fish, flock, sea