What I'm imagining is your generate a bunch of completions and penalize the ones that don't compile(or pass some other statically-performable check like generating no syntax errors or whatever)
Applied algebraic abstractologist. Trying to get the heavens into my head.
"Elsk – og berik med drøm – alt stort som var!
Gå mot det ukjente, fravrist det svar!"