Platform
Resources
Pricing
Sign in
Get started
Simon Willison
Workspace
Fork
Published
By
Simon Willison
Edited
Aug 1, 2022
Insert cell
#
Turn pasted text into a big SQLite FTS OR query
See
<https://github.com/simonw/til/issues/50>
Insert cell
viewof
text
=
Inputs
.
textarea
(
)
Insert cell
words
=
new
Set
(
text
.
toLowerCase
(
)
.
trim
(
)
.
replaceAll
(
/[^a-zA-Z0-9\s]/gm
,
""
)
.
split
(
/\s+/
)
)
Insert cell
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
text
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
words
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML