'use strict';

const keywordSets = require('../reference/keywordSets');

/**
 * Check value is a custom ident
 *
 * @param {string} value
 */
module.exports = function (value) {
	const valueLowerCase = value.toLowerCase();

	if (
		keywordSets.counterIncrementKeywords.has(valueLowerCase) ||
		Number.isFinite(Number.parseInt(valueLowerCase))
	) {
		return false;
	}

	return true;
};
