1/** 2 * åè¯æ°æ®æ¨¡å 3 * ä» å å«åè¯ ID å表ï¼åè¯è¯¦æ ä»å端 API è·å 4 * æ»åè¯æ°ï¼1295 个 5 */ 6 7'use strict'; 8 9const WORD_COUNT = 1295; 10 11/** 12 * è¯è¡¨åºç¡é ç½®ï¼å端éæé ç½®ï¼åå°æ°æ®åºæ¥è¯¢ï¼ 13 */ 14const WORDLISTS_CONFIG = { 15 'ket-core': { 16 id: 'ket-core', 17 name: 'KET/Keynote Iæ ¸å¿', 18 description: '1295ä¸ªæ ¸å¿è¯æ±', 19 price: 0, 20 purchaseUrl: 'http://xhslink.com/o/ANOOLIEsnTB' 21 } 22}; 23 24/** 25 * è·ååè¯ ID 26 * @param {number} index - åè¯ç´¢å¼ 27 * @returns {string} - åè¯ ID 28 */ 29function getWordId(index) { 30 return `ebv2_${index}`; 31} 32 33/** 34 * è·åææåè¯ ID å表 35 * 注æï¼æ¤æ¹æ³ä» è¿å IDï¼ä¸è¿ååè¯å 容 36 * @returns {string[]} - åè¯ ID æ°ç» 37 */ 38function getAllWordIds() { 39 const ids = []; 40 for (let i = 0; i < WORD_COUNT; i++) { 41 ids.push(getWordId(i)); 42 } 43 return ids; 44} 45 46// å¯¼åºæ¨¡å 47if (typeof module !== 'undefined' && module.exports) { 48 module.exports = { 49 WORD_COUNT, 50 WORDLISTS_CONFIG, 51 getWordId, 52 getAllWordIds 53 }; 54}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.