Implementation of Mark Johnson's Adaptor Grammar