Allegorically has 2 different meanings across 1 category:
Adverb
in an allegorical manner
"the play ended allegorically"
In an allegorical manner.