On 07/23/2011 07:40 PM, Nick Sabalausky wrote:
"Andrei Alexandrescu"<[email protected]> wrote in message
std.string.outdent
It would make sense to name the "unindent" function "outdent", but the
"normalize" does more than that: It also removes all whitespace-only lines
from the top and bottom ("stripTopBottom") and (though this part is maybe
far less important) it does a stripr on each remaining line.
It does too much. Just have it do outdenting and call it outdent, it
will be useful to many. "Normalized text" means several things in NLP,
neither of which is what you mean.
Andrei