Better handling of dataframes for phoneme and word