Add helper functions for base offset and word_groups