import re


def search_wordlist(wordlist, src_str):
  """Search for wordlist entries in text and return set of found items.

  Args:
    wordlist: Dict of word entries and recommendations to search in string.
    src_str: String to search for word entries.

  Returns:
    A dict that is a subset of entries from `wordlist` found in `src_str`.
  """
  found_words = {}
  for word in wordlist:
    # Word-boundary and ignore between path seperator '/'.
    if re.search(rf"[^/]\b{word}\b[^/]", src_str, re.IGNORECASE):
      alt_word = wordlist[word]
      if not alt_word:
        alt_word = "n/a"
      found_words[word] = alt_word
  return found_words