f8feb6d5

By: Tom Sydney Kerckhove <syd@cs-syd.eu>

Split both names into words before matching one against the other

Running the rule over nix-ci had it say that gitUserName holds a Username. It
does not: a git author's display name is stored there, beside the email it is
written with, and a platform username is a different thing. The letters of
Username really are the end of gitUserName, which is all the match asked for.

What tells the two apart is that one name is two words and the other is one, so
both are split now and the type's words have to be the end of the field's. The
previous reading took the boundary off the field's letters alone and said so in
its own Haddock, which was the mistake: the second splitting it avoided is the
one that makes the question answerable.

Case still does not matter inside a word, so fooJSONUrl holds a JsonUrl. A run
of capitals is one word and gives its last letter to the word after it, which
is how JSONUrl is JSON and Url rather than a word per letter.

wordsOfName is exported and has a spec of its own, because every match this
rule makes now runs through it.
e2e-added-rule-is-rune2e-artifacts-are-reade2e-choices-are-found-beside-the-repositorye2e-cleane2e-dirty-package-is-judged-failinge2e-dirty-project-is-judged-failinge2e-dirty-report-is-readablee2e-disabled-rule-is-not-rune2e-incomplete-artifacts-are-a-failuree2e-judging-nothing-failse2e-named-packages-are-every-packagee2e-no-packages-is-judged-failinge2e-no-store-paths-in-findingse2e-paths-are-repository-relativee2e-withheld-facts-faile2e-wrong-source-mapping-is-a-complainthlint-checkhopinionpre-commitreleaseshellweeder-checkconfiguredevShelldefaultx86_64-linux