3 ms·
probabilityOfClosing = (question) -> text = question.text.toLowerCase() return (text.length / (text.indexOf('jquery') + 2)) / 100
by ricardobeat 14y ago
probabilityOfClosing = (question) ->
text = question.text.toLowerCase()
return (text.length / (text.indexOf('jquery') + 2)) / 100
- usea 14y agoI realize this was in jest, but your algorithm says that the shorter a post, the less likely it is to be closed. A post of zero length has a 0% chance of being closed. Also, the result is not bound to 0..1
- deleted 14y ago[deleted]