Principally has 2 different meanings across 1 category:
Adverb
for the most part
"he is mainly interested in butterflies"
In a primary manner; pertaining to the principal of a matter.
"The project was delayed principally due to funding issues rather than technical difficulties."