Every permutation can be decompose as a product of transpositions. This decomposition is not unique, however the parity of the number of transpositions that appears in the decomposition is always the same. Thus the sign is defined as $(1)^l$ where $l$ is the number of transposition.
The sign can be calculated if the cycle decomposition if known because the sign is multiplicative and the sign of a $k$cycle is $(1)^(k+1)$. This is the way the method permutationSign calculates the sign.
The sign permutation is used to calculate polytabloids and higher Specht polynomials.






The object permutationSign is a method function.