In GAs, the fitness function is where the bulk of domain-specific knowledge and heuristics is typically encoded.
for NLG, the fitness function serves as a metric, or more precisely a set of metrics, that measure whether a candidate text achieves the goals of fidelity and fluency.