Browse Source

Add comment for confidence score function

pull/335/head
Julian Simioni 9 years ago
parent
commit
05a840753d
  1. 8
      middleware/confidenceScore.js

8
middleware/confidenceScore.js

@ -82,6 +82,14 @@ function computeConfidenceScore(req, mean, stdev, hit) {
return hit;
}
/*
* Check for clearly mismatching properties in a result
* zip code and state (admin1) are currently checked if present
*
* @param {object|undefined} text
* @param {object} hit
* @returns {bool}
*/
function checkForDealBreakers(req, hit) {
if (check.undefined(req.clean.parsed_text)) {
return false;

Loading…
Cancel
Save