module.exports = function(ruleManager, sentence, result) {

    if (!result || !result.tokenIndices || !sentence)
    {
        return false;
    }
    //console.log("Result : " + result.mainTokenIndices);
    let yearString = sentence.tokens[result.mainTokenIndices].word;
    //console.log("MainToken : " + yearString);
    var mentionedYear = parseInt(yearString, 10);
    //console.log("User mentioned year : " + mentionedYear);
    var today = new Date();
    currentYear = today.getFullYear();
   // console.log("Current year : " + currentYear);
    if (mentionedYear<currentYear)
    {
        return true;
    }
    console.log("User mentioned year : <" + mentionedYear+ "> doesn't correspond to the past");
    return false;

}