re-write the function in OOP (class-based) and before deletion of the old code
deleted discarded procedure-based code in trichar_word_train_ins_gen.py