lib/fase-1/title-header-item.js
function wordcountScore(x) {
  if (x > 5) return 1;
  else return Math.min(1, 2.27 * Math.sqrt(x) - 0.0507 * Math.pow(x, 2) - 2.808);
}
function wordcountScore(x) {
  if (x > 5) return 1;
  else return Math.min(1, 2.27 * Math.sqrt(x) - 0.0507 * Math.pow(x, 2) - 2.808);
}
function wordcountScore ( x ) { if ( x > 5 ) return 1 ; else return Math . min ( 1 , 2.27 * Math . sqrt ( x ) - 0.0507 * Math . pow ( x , 2 ) - 2.808 ) ; }
This function is made by the following requirements: x > 5, y = 1 f(x) = a*sqrt(x) + b*x^2 + c f(2) = 0.2 f(5) = 1 f'(5) = 0
This function is made by the following requirements : x > 5 y = 1 f ( x ) = a * sqrt ( x ) + b * x^2 + c f ( 2 ) = 0 . 2 f ( 5 ) = 1 f ( 5 ) = 0