Weighted finite state automaton (WFSA) and finite state transducer (FST) writer + Carmel scripts