function inspectResponseType(assistantResponseString) {
  const googleTopResultRegex = /"(.*)" \(\s?(.+) - (.+?)\s?\)(?:\\n(.+))?/;
  const youtubeResultRegex = /(.+) \[(.+)\] \(\s?(.+?)\s?\)(?:\n---\n([^]+))?/;

  const searchResultMatch = assistantResponseString.match(googleTopResultRegex);
  const youtubeMatch = assistantResponseString.match(youtubeResultRegex);

  const isGoogleTopSearchResult = searchResultMatch != null
    ? assistantResponseString === searchResultMatch[0]
    : false;

  const isYoutubeResult = youtubeMatch != null
    ? youtubeMatch[3].startsWith('https://m.youtube.com/watch?v=')
    : false;

  const googleSearchPrompts = [
    'here\'s a result from search',
    'here\'s a result from the web',
    'here\'s the top search result',
    'this came back from google',
    'this came back from a search',
    'here\'s what i found on the web',
    'this is the top result',
    'here\'s what i found',
    'here\'s some info',
    'this is from wikipedia',
    'i found this on wikipedia',
    'here\'s an answer from wikipedia',
    'here\'s a wikipedia result',
    'here\'s the top wikipedia result',
    'wikipedia has this result',
    'here\'s something from wikipedia',
    'here\'s a result from wikipedia',
    'here\'s a matching wikipedia result',
  ];

  const isGoogleSearchPrompt = googleSearchPrompts.includes(mainArea.innerText.toLowerCase());

  let type;
  let searchResultParts;

  if (isYoutubeResult) {
    type = 'youtube-result';
    searchResultParts = youtubeMatch.slice(1);
  }
  else if (isGoogleTopSearchResult) {
    type = 'google-search-result';
    searchResultParts = searchResultMatch.slice(1, 5);
  }
  else if (isGoogleSearchPrompt) {
    type = 'google-search-result-prompt';
    searchResultParts = null;
  }
  else {
    type = null;
    searchResultParts = null;
  }

  const dataObject = {
    type,
    searchResultParts,
    assistantResponseString,
  };

  return dataObject;
}
Classifies the response string provided by the assistant
and returns an `Object` containing the type of the
response and various parts of the response.

@param {string} assistantResponseString
The response that has to be classified