\setupinteraction[state=start]

\definesynonyms[abbr][abbrs][\fullgloss][\shortgloss]
\setupsynonyms[synonymstyle=boldslanted]

\defineregister[Glossar][Glossars]

\def\gloss#1{\shortgloss{#1}\Glossar[#1]{\shortgloss{#1}+\fullgloss{#1}}}


\abbr{short word} {A short word is a short word}
\abbr{long word}  {A long word is a long word}
\abbr{not a word} {Not a word is not a word}

\starttext

Text \gloss{not a word} text text text
\gloss{long word} text text text text text text.
\page
\gloss{short word} text text text text
\gloss{long word} text text text text text text.
\page
\gloss{long word} text text text text text text.
\page

\placeregister[Glossar][criterium=all]%[n=1]
\stoptext
