src/stringProcessing/relevantWords.js
function filterFunctionWords( combinations, functionWords ) {
	combinations = filterFunctionWordsAnywhere( combinations, functionWords.filteredAnywhere );
	combinations = filterFunctionWordsAtBeginningAndEnding( combinations, functionWords.filteredAtBeginningAndEnding );
	combinations = filterFunctionWordsAtEnding( combinations, functionWords.filteredAtEnding );
	combinations = filterFunctionWordsAtBeginning( combinations, functionWords.filteredAtBeginning );
	return combinations;
}
function filterFunctionWords( combinations, functionWords ) {
	combinations = filterFunctionWordsAnywhere( combinations, functionWords.filteredAnywhere );
	combinations = filterFunctionWordsAtBeginningAndEnding( combinations, functionWords.filteredAtBeginningAndEnding );
	combinations = filterFunctionWordsAtEnding( combinations, functionWords.filteredAtEnding );
	combinations = filterFunctionWordsAtBeginning( combinations, functionWords.filteredAtBeginning );
	return combinations;
}
Filters the list of word combination objects based on the language-specific function word filters.
Word combinations with specific parts of speech are removed.

@param {Array} combinations The list of word combination objects.
@param {Function} functionWords The function containing the lists of function words.
@returns {Array} The filtered list of word combination objects.