// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Count ASCII word tokens // Not compiled or tested in-world // Setup: Edit the example inputs in the script, then touch as owner. // Stop / restore: Remove or disable. This transforms text locally and sends no external requests. // Notes: A deliberately simple ASCII tokenizer; it is not suitable for all writing systems or linguistic word counts. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. string TEXT="Garden-lamp #2: brass & glass."; default { touch_start(integer touches) { if(llDetectedKey(0)!=llGetOwner())return; integer words; integer inside; integer i; for(i=0;i