The purpose of xxrep

Didn’t get it here.

First of all, it converts to xxwrep only if there are 3 or more words in a row. But it doesn’t really matter for now, let’s say it can do the same when there are 2 words.

Your example “Jim had had, had had. Had had, had had the master’s approval” will be (xxmaj is omitted):

  1. [‘xxbos’, ‘jim’, ‘had’, ‘had’, ‘,’, ‘had’, ‘had’, ‘.’, ‘had’, ‘had’, ‘,’, ‘had’, ‘had’, ‘the’, ‘master’, ‘’s’, ‘approval’] when xxwrep is not allowed
  2. [‘xxbos’, ‘jim’, ‘xxwrep’, ‘2’, ‘had’, ‘,’, ‘xxwrep’, ‘2’, ‘had’, ‘.’, ‘xxwrep’, ‘2’, ‘had’, ‘,’, ‘xxwrep’, ‘2’, ‘had’, ‘the’, ‘master’, ‘’s’, ‘approval’] when xxwrep is allowed

I don’t see how it could really help here.