9 ms·
I'm a really noob coder, and not a web developer, so I don't know what functions etc are responsible for this, but couldn't you use the code governing the commo
by HalcyonMuse 17y ago
I'm a really noob coder, and not a web developer, so I don't know what functions etc are responsible for this, but couldn't you use the code governing the common "More..." link often used to truncate reviews?
(e.g. Sesame Street is... (More...) - > Sesame Street is a children's show.)
Also, each sentence could be an object of sorts with one value for the simplified version and references to other objects that constitute the detail of the simple sentence. The referenced objects could be of the same class, and, in turn, resolve to even further detail by reference.
The pitfall is, of course, that it would require some extra thought while writing to keep everything cohesive and sensible with varying levels of complexity on the page at the same time.