Cotton code
100 lines · 2.1 KB · JSONRaw
{  "about": "see crates/cotton-core/src/seal/blind.rs `matches`: over blind words, every query word but the last is a word of the text and the last starts one (is one at 2 scalars); a query with no word holds nothing",  "cases": [    {      "text": "Zanzibar ferry tickets",      "query": "zanz",      "matches": true    },    {      "text": "Zanzibar ferry tickets",      "query": "ferry tick",      "matches": true    },    {      "text": "Zanzibar ferry tickets",      "query": "zanz ferry",      "matches": false    },    {      "text": "Zanzibar ferry tickets",      "query": "tickets ferry",      "matches": true    },    {      "text": "the conference was long",      "query": "conference",      "matches": true    },    {      "text": "the talk was conferred",      "query": "conference",      "matches": false    },    {      "text": "the talk was conferred",      "query": "confer",      "matches": true    },    {      "text": "we go home",      "query": "go",      "matches": true    },    {      "text": "we going home",      "query": "go",      "matches": false    },    {      "text": "the a of",      "query": "the",      "matches": false    },    {      "text": "x marks",      "query": "x",      "matches": false    },    {      "text": "Café naïve",      "query": "cafe",      "matches": true    },    {      "text": "CAFE",      "query": "Café",      "matches": true    },    {      "text": "मैं कल दिल्ली में हूँ",      "query": "दिल्",      "matches": true    },    {      "text": "मैं कल दिल्ली में हूँ",      "query": "कल दिल्ली",      "matches": true    },    {      "text": "बाज़ार",      "query": "बाजार",      "matches": false    },    {      "text": "₹7,250.50 paid",      "query": "7250",      "matches": false    },    {      "text": "₹7,250.50 paid",      "query": "250",      "matches": true    },    {      "text": "",      "query": "anything",      "matches": false    }  ]}