Hi Philippe,

there are two issues causing a problem with naming for this module:

1. very specific form of input required/expected (hash of weights)
2. tightly bound to a DSL as its API

If you want to be descriptive then you simply cannot give a module like
this a terribly generic name. To cover (2), you need ::Rules. To cover
(1), you basically need to name all aspects: takes a hash, specifically
one where the values are weights, and reduces it to a single value. So
I ended up with

Hash::Reduce::Weighted::Rules

It’s a mouthful but seems necessary to accurately summarize the module.
None of the names that omit any of these components felt satisfactory:
whichever one you take out, the shorter name seems to describe a very
different module.

I did try to fit “Categorize” in there but it just isn’t specific enough
to *replace* any component of the name, and if you just *add* it to the
whole kit and caboodle, the name becomes ludicrous. So I left it out.

So that’s the best I could do.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Reply via email to