Why the position is kept at all
A word list answers whether a document has the words. A phrase needs the order, and the order costs one number per token.
The count is the record
Tokens per document. The count is what a size claim is checked against.
A token is a word with a place. The place is the position, and the position is what makes a phrase answer possible later.
About 1 min of reading
Tokenize with positions
Write the break set
Before you run it, say out loud what it will print. Then open the answer.
Split with positions
Before you run it, say out loud what it will print. Then open the answer.
Refuse a long token
Before you run it, say out loud what it will print. Then open the answer.
A word list answers whether a document has the words. A phrase needs the order, and the order costs one number per token.
Tokens per document. The count is what a size claim is checked against.
The position is a number. A number is a claim about order, and order is what a phrase needs.
What is not a letter or a number is a break. A set is small, and small is what makes the rule readable.
A token longer than the limit is refused. The refusal names the document, which is the record.
Each one is defined here on this site. Open the entry for the full definition and the other words it points at.