A couple of weeks ago, @dbc asked, In "Low Quality Posts" is it required to cross-check external links with profile pages to identify Improper Self Promotion?, to which I responded with my process for evaluating spam. As part of that, I noted:
Note: This may require clicking through to e.g. source code for a library. This can be hard to spot if they're just using e.g. an import statement or package reference.
That last bit about import statements or package references seemed a bit fussy at the time, and I considered removing it. Since then, however, I've seen a couple of cases of exactly that.
The most overt example was an answer that was clearly promoting their own library. In another (now deleted) post, I warned the contributor about the self-promotion policy. In response, they edited their answer to remove the affiliation, and simply referenced their library via an import statement:
import numpy as np import fastfinance as ff …
This is obviously a bit sloppy as that import is going to fail without first downloading the library via e.g. pip. And, regardless, the contributor hadn't packaged or registered their library on the PyPI. But, if they had, and I wasn't aware of the previous edit, would I have recognized something like the following as self-promotion?
First, run the following at your CLI:
pip install fastfinanceAnd then, add this to your code:
import numy as np import fastfinance as ff …
I doubt it.
This makes me wonder, in the spirit of @dbc's previous question, in "Low Quality Answers", should we cross-check package references to identify Improper Self Promotion?
I.e., should we see something like:
pip install somelibrary
or:
npm i somelibrary
as just as suspicious as:
First, download
somelibrary…
This isn't something I generally do, unless there are other obvious concerns, but now I wonder if this should be standard practice for package references in the Low Quality Answers queue.