Generalisation toolbox refactored from the WebGen framework