function closestMatch(text) {
	// Use exact match, if any (should be quicker to compute.)
	if (links[text]) {
		return text

	} else {
		// Sort all keywords by similarity, and return the first one, if any.
		matches = sortedMatches(text)
		return matches[0]
	}
}
// Returns the most similar keyword to the given text, if any.
Returns the most similar keyword to the given text, if any.
Returns the most similar keyword to the given text if any .
function closestMatch(text) {
	if (links[text]) {
		return text
	} else {
		matches = sortedMatches(text)
		return matches[0]
	}
}
function closestMatch ( text ) { if ( links [ text ] ) { return text } else { matches = sortedMatches ( text ) return matches [ 0 ] } }
Returns the most similar keyword to the given text, if any.
Returns the most similar keyword to the given text if any .
// Use exact match, if any (should be quicker to compute.) // Sort all keywords by similarity, and return the first one, if any.