Grammar theory to model symbol strings originated from work in computational linguistics aiming to understand the structure of natural languages.[1][2][3] Probabilistic context free grammars (PCFGs) have been applied in probabilistic modeling of RNA structures almost 40 years after they were introduced in computational linguistics.[4][5][6][7][8]