Consider for example https://stackoverflow.com/questions/27708325/check-how-two-string-ressemble-in-python?noredirect=1#comment43829077_27708325 -- a typical "how do I perform task X in language Y" question.
It's been put on hold as "asking us to recommend or find" (a tool, book, library, &c), while it's asking no such thing -- rather, it's asking how to perform a certain task.
It just so happens that answers may involve recommending a library, or a module within language Y's standard library (both, in this Q's case), rather than showing algorithms for X implemented in Y -- but, how does the nature of such answers (which the querant can't know in advance) retroactively disqualify the question?
It seems to me that closing reason should only apply to questions specifically asking for recs of off-site resources, rather than otherwise perfectly acceptable ones which happen to have, among their acceptable answers, such recs, no?