probabilityOfClosing = (question) -> text = question.text.toLowerCase() return (text.length / (text.indexOf('jquery') + 2)) / 100
Also, the result is not bound to 0..1
Also, the result is not bound to 0..1