public static boolean isLinearProductionWithNoVariable(Production production) {
		if (!isRestrictedOnLHS(production))
			return false;
		String rhs = production.getRHS();
		/** if rhs is all terminals. */
		String[] terminals = production.getTerminalsOnRHS();
		if (rhs.length() == terminals.length)
			return true;
		return false;
	}