mainprisor
/ˈmeɪnpɹɪˌsɔɹ/Definitions
1. noun
a person who is held in custody until they can be brought before a court to answer a charge, especially one who is held for trial or judgment
“The mainprisor was kept in a cell until the trial date was announced.”