API for word alignment in the C runtime and in the Haskell binding