1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "texts": [
12 "The neighbourhood library has become the most useful public room in our town because it gives people a place to learn without first asking them to buy something. I first noticed this during a wet Tuesday afternoon when the buses were late and the coffee shop was full. At one table, a father was helping his daughter read a science worksheet. At another, two job seekers compared interview notes beside the printer. The librarian moved between them, answering questions about a council form, a broken keyboard, and the next book-club meeting. None of those tasks looked dramatic, but together they showed why the library matters. It turns information into a shared resource rather than a private advantage. The building also gives young people a safe place to wait after school. They can use computers, borrow novels, finish homework, or simply sit quietly before going home. Older residents use the same tables to read newspapers, learn video calling, and ask for help with online appointments. The library therefore reduces a small but important kind of isolation. It connects people who might otherwise have no reason to speak to one another. Funding a library is not only about shelves of books. It is about maintaining a dependable civic space where curiosity, practical help, and ordinary conversation can happen every day. When councils measure value only through ticket sales or retail income, they miss this wider benefit. A library earns trust slowly, through hundreds of patient interactions that do not appear on a balance sheet. The quiet routines also build confidence: a first-time borrower learns the catalogue, a teenager asks for a revision guide, and a new resident discovers a local noticeboard. Those small encounters make public services feel accessible instead of distant. That is precisely why the library deserves protection when budgets are tight."
13 ],
14 "reviewProfile": "turnitin-pre-screen",
15 "maxTexts": 1,
16 "maxCharacters": 20000,
17 "includeSentences": true,
18 "includeTextPreview": false,
19 "aiThreshold": 80,
20 "humanThreshold": 20,
21 "maxConcurrency": 1
22};
23
24
25const run = await client.actor("khadinakbar/turnitin-ai-detector-alternative").call(input);
26
27
28console.log('Results from dataset');
29console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
30const { items } = await client.dataset(run.defaultDatasetId).listItems();
31items.forEach((item) => {
32 console.dir(item);
33});
34
35