cellplatform / platform-0.2.0

/sys (shared system modules)
Other
5 stars 2 forks source link

sys.text: word match and replacement (Ben's "CO₂" scenario) #83

Closed philcockfield closed 10 months ago

philcockfield commented 2 years ago

see also: https://github.com/cellplatform/platform-0.2.0/issues/78


module: sys.text "uinst" - Universal Syntax Tree

describe('word match and replacement')

Sample test:

image

philcockfield commented 2 years ago

image

philcockfield commented 2 years ago

Sample implementation using retext (nlcst) within a unit-test:

https://github.com/cellplatform/platform-0.2.0/commit/33d9faf748c34e1eff3de91c0f850a2eb4472dc0#diff-10bbd6a65d004fae405f7c6b2085e85c73ea857ebb309388548f43c81588a8d9R35

philcockfield commented 2 years ago

Using library: retext

image


Which is a higher order module that leans on the nlcst

image

philcockfield commented 2 years ago

image

philcockfield commented 2 years ago

See also PR: https://github.com/cellplatform/platform-0.2.0/pull/88

philcockfield commented 2 years ago

unified-meta-markdown-semantic-plugin

ref: https://github.com/cellplatform/platform-0.2.0/issues/78

philcockfield commented 2 years ago

source-ref:
https://github.com/philcockfield/philcockfield/edit/master/docs/slugs.md#kaybruner-doing-with-images-makes-symbols


Kay/Bruner: Doing with Images makes Symbols

image

Ref: Alan Kay (timestmp)
Ref: Bruner (Wikipedia) (sys.edu: Education Theorist)

Logic as a fragile inference system, dependent more on the strength of the context it resides within. Focus on getting the contexts right:

"It's not logic that is powerful...logic is actually a weak method because it depends on fragile chains of inference. And people have used logic throughout history, but mostly in inappropriate contexts.

There is nothing illogical about the way the alchemists or the babylonians did things, it's that they were in a context in which their logic couldn't do much"

"This notion that the context is powerful - and if you want to be good at solving problems and acting much smarter than you are then you have to find a context that is going to do most of the thinking for you." - Alan Kay

philcockfield commented 2 years ago

unified-meta-markdown-semantic-plugin

Ref: Alan Kay (timestmp) sys.text