Voici une solution.
Tout d'abord, il faut redéfinir la commande `\YAD@display@staff`. La classe a facilité le boulot, grâce à l'extension
*etoolbox*. Donc il suffit d'ajouter
% !TEX none
\patchcmd{\YAD@display@staff}{\DTLiffirstrow}{%
\ifboolexpr{%
test {\ifdefstring{\YAD@the@staff}{referees}}%
}{}{\DTLiffirstrow}}{}{\err}
\patchcmd{\YAD@display@staff}{\YAD@translation{\YAD@the@staff-pl}}{%
\ifboolexpr{%
test {\ifdefstring{\YAD@the@staff}{referees}}%
}{\YAD@translation{\YAD@committeemember@role}}{\YAD@translation{\YAD@the@staff-pl}}}{}{\err}
Ensuite, il faut ajouter
% !TEX none
\expression{referees-female}{Rapportrice}{\translate[to=English]{lbl-referees}}
Enfin, vous avez deux options.
1- redéfinir la commande `\referee` comme suit
% !TEX none
\renewcommand*{\referee}[3][]{%
\yadsetup{#1}%
\ifboolexpr{%
bool {YAD@female} or %
not bool {YAD@male}%
}{%
\YAD@error@firstlastnames@empty{de la rapportrice}{#2}{#3}{\referee}%
\YAD@staff[role=referees-female,#1]{#2}{#3}{referees}%
}{%
\YAD@error@firstlastnames@empty{du rapporteur}{#2}{#3}{\referee}%
\YAD@staff[role=referees,#1]{#2}{#3}{referees}%
}%
}%
2- utiliser la commande `\referee` comme suit
% !TEX none
\referee[corps=juniorresearcher*,role=referees]{Truc}{Muche}
\referee[corps=professor,female=true,role=referees-female]{Machine}{Bidule}
**ECM.**
\documentclass[nomakeabstract, notableofcontents,noprintbibliography, version=final]{yathesis}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\makeatletter
\patchcmd{\YAD@display@staff}{\DTLiffirstrow}{%
\ifboolexpr{%
test {\ifdefstring{\YAD@the@staff}{referees}}%
}{}{\DTLiffirstrow}}{}{\err}
\patchcmd{\YAD@display@staff}{\YAD@translation{\YAD@the@staff-pl}}{%
\ifboolexpr{%
test {\ifdefstring{\YAD@the@staff}{referees}}%
}{\YAD@translation{\YAD@committeemember@role}}{\YAD@translation{\YAD@the@staff-pl}}}{}{\err}
\renewcommand*{\referee}[3][]{%
\yadsetup{#1}%
\ifboolexpr{%
bool {YAD@female} or %
not bool {YAD@male}%
}{%
\YAD@error@firstlastnames@empty{de la rapportrice}{#2}{#3}{\referee}%
\YAD@staff[role=referees-female,#1]{#2}{#3}{referees}%
}{%
\YAD@error@firstlastnames@empty{du rapporteur}{#2}{#3}{\referee}%
\YAD@staff[role=referees,#1]{#2}{#3}{referees}%
}%
}%
\makeatother
\expression{referees-female}{Rapportrice}{\translate[to=English]{lbl-referees}}
\begin{document}
% métadonnées
\author{paulc}{paulc}
\title[title]{titre}
\academicfield[latex]{LateX}
\institute{Université}
\doctoralschool{ED}
\laboratory{Labo}{Labo}
\date{25}{12}{2022}
\submissiondate{25}{10}{2022}
\keywords{keywords}{motscles}
%%%%%%% Encadrants
\supervisor[corps=professor]{prenom}{nom}
\comonitor[corps=associateprofessor]{prenom2}{nom2}
%%%%%% Rapporteurs
\referee[corps=juniorresearcher*]{Truc}{Muche}
\referee[corps=professor,female=true]{Machine}{Bidule}
%%%%%% Examinateurs
\examiner[corps=professor]{Machin}{Chose}
\examiner[corps=associateprofessor]{Truc}{Bidule}
%%%%%% Invités
\guest[corps=associateprofessor, female=true]{Machine2}{Bidule2}
\guest[corps=associateprofessor]{Truc2}{Muche2}
\maketitle
\mainmatter
\end{document}