mozilla / fathom

A framework for extracting meaning from web pages
http://mozilla.github.io/fathom/
Mozilla Public License 2.0
1.97k stars 75 forks source link

Rename "node" to something better. #15

Closed erikrose closed 7 years ago

erikrose commented 8 years ago

"Node" already means "DOM node". Use another word for the node proxies Fathom scribbles its bookkeeping information on.

erikrose commented 8 years ago

I can't think of anything to call it. Any suggestions? It should be short, since it's embedded in many other names, like inNode and nodeForElement. It should also be obvious, ruling out cute synonyms like "knot". "proxy" is rather generic to the point of being underinformative.

telliott commented 8 years ago

I think node is fine. You're creating a shadow DOM, so using the same terminology makes sense.

erikrose commented 8 years ago

Not really; I'm creating a series of data structures that reference the original DOM nodes. They don't have a DOM-like API. See how I misled you? :-)

erikrose commented 8 years ago

Mirror nodes? fnodes (for "fathom nodes")?

erikrose commented 8 years ago

I started calling them "fnodes" in the 1.0 readme. Still have to update the code, though.

jeremy-w commented 8 years ago

Element, flavor, and score. Hmm. Name ideas:

/me concludes drive-by musing.

jeremy-w commented 8 years ago

Oh, forgot to pun on "fathom" as a measure of six feet:

And as "understand":

erikrose commented 8 years ago

Hmm, "notion"! That fits the fuzzy-logic aspect of the things we stick onto fnodes: "I think this might be a nav box, to some level of certainty." That's my favorite from your lists. Thanks! (Tag, token, fact, note, and notation are good too but already mean things in the system.)

jeremy-w commented 8 years ago

One that came to mind later was "factor". So you assess several different factors in order to make a tentative conclusion, weighing the evidence.

Hmm. Evidence, clue, hint, trace, track, fingerprint, track.

Notion sounds good though! (It's also brings to mind a homey concrete visual if you do any sewing/knitting/crocheting.)

Jeremy W. Sherman http://jeremywsherman.com/

El 08-08-2016, a las 13:19, Erik Rose notifications@github.com escribió:

Hmm, "notion"! That fits the fuzzy-logic aspect of the things we stick onto fnodes: "I think this might be a nav box, to some level of certainty." That's my favorite from your lists. Thanks! (Tag, token, fact, note, and notation are good too but already mean things in the system.)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

erikrose commented 8 years ago

Notion sounds good though! (It's also brings to mind a homey concrete visual if you do any sewing/knitting/crocheting.)

You're bringing back my horrible memories of bobbin-threading. :-)

erikrose commented 7 years ago

"fnode" seems to be sticking.