There are many similar confusingly-named tags 'intersection/ intersect*', some with no tag-wiki definitions, some with self-evidently wrong definitions, all of these gloriously misused interchangeably. How many distinct use cases do we have here, and what are they?
Here are the current tags and their usage:
1) intersection has 1790 questions and a tag wiki suggesting it's for geometrical (2D or 3D) intersections, even though very few of its questions are about geometrical intersections, they're actually about lists, arrays, sets, collections etc.:
"Intersection is a term that relates to descriptive geometry and functions. Intersections are points which are included in multiple objects. They are intersections of the object they belong to."
(also note we already have tags geometry and computational-geometry)
2) intersect has 488 questions and a tag wiki suggesting it should only be about SQL, even though it's a generic concept/keyword across many languages. Breakdown by keyword: SQL 80, C# 69, R 64, MySQL 42, Java 34, Linq 34, "arrays" 31, sql-server 30, Python 26, PHP 21, Excel 18, JS 6, Ruby 5 ...
"The SQL intersect operator returns rows that are common between two tables without returning duplicate records."
3) set-intersection has 196 questions: (set × 52, python × 47, c++ × 34, algorithm × 27, java × 22, list × 21, set-union × 17, arrays × 15, r × 14, intersection × 14). (Btw there's also a tag set-difference, and it gets even more inconsistently used, but that's another story).
4) array-intersect has 127 questions and the tag says it's intended only for PHP's array_intersect()
function (should we even have a tag named after one function from one language which could easily be found from plaintext?), but still there are some other languages: python × 3, javascript × 2, c# × 2, ...
5) line-intersection has no tag wiki but 100 questions, across C++, C#, IOS, Google Maps, pure algorithmic, etc. What does it even mean anyway? The intersection of a line with another line? with a shape? with a volume? Parametric, non-parametric, or both?
But wait, there's more! Other hilarity-inducing tags which definitely arguably need a flamethrower:
6) intersection-observer has 71 questions, didn't have a tag wiki until I pointed it out, and only seems to be about the Javascript API of that name (Recommendation: delete tag. Justification: 1)
7) self-intersection has 9 questions, no tag wiki, some are about 3D geometry, some 2D (maps, polygons) (Recommendation: delete tag)
8) interval-intersection has 8 questions, no tag wiki, no use case (Recommendation: delete tag)
(As a footnote, how did this mess happen? Does nobody pay a blind bit of notice to tag wikis and their blatant misuse, the complete absence of a tag wiki as a signal that it might be poorly-defined/duplicate, tag synonyms...?)
Anyway, restating the actionable questions: How many distinct use cases do we have here, and what are they?
- assume we agree that intersection in DBs is distinct to intersection in data-structures? But then how do we name the tags?
- set-intersection seems sufficiently distinct and language-agnostic to warrant its own tag. Or does it. It's also currently being somewhat misused for lists, trees etc. We can't create a tag for every data-structure.
- geometrical intersection is clearly a distinct use-case, but does it deserve a separate tag, and if yes, shouldn't that tag be called 'geometrical-intersection' to avoid misuse? Note we already have geometry and computational-geometry anyway. Are 2D and 3D intersection algorithms, APIs and code sufficiently similar to cohabit in the same tag? Sometimes the result is a volume, sometimes a polygon, sometimes a line, sometimes a (discrete) set of points.
- what do we do with line-intersection? Does it even have a clear definition distinct to geometrical-intersection anyway?
- It's totally asking for trouble to have two unrelated tags named intersect and intersection. Either they should be redefined and aliased, or both renamed.
IntersectionObserver
is a Web API similar toMutationObserver
. I don’t see why this tag should be deleted.