public static boolean isLeftLinearProductionWithVariable(
			Production production) {
		if (!isRestrictedOnLHS(production))
			return false;
		String rhs = production.getRHS();
		/**
		 * if only one variable on rhs and it is first char on rhs.
		 */
		String[] variables = production.getVariablesOnRHS();
		if (variables.length == 1) {
			char ch = rhs.charAt(0);
			if (isVariable(ch)) {
				return true;
			}
		}
		return false;
	}