% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
\documentclass{article}

\usepackage[colorlinks]{hyperref}
\usepackage[prefix]{glossaries-extra}

\makeglossaries

\newabbreviation
 [prefix={an\space},
 prefixfirst={a~}]
 {svm}{SVM}{support vector machine}

\begin{document}
\tableofcontents

\section{\Pglsfmtlong{svm}}

This is a sample document to test prefixes.
First use: \pgls{svm}.
Next use: \pgls{svm}.

\printglossaries

\end{document}
