-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfodt.js
81 lines (68 loc) · 3.19 KB
/
infodt.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//#region Dysplay info data
function displayInfoData() {
const liblink =
"DropSuit: https://github.com/ladooniani/DropSuit#readme\n" +
"Copyright © 2016-" +
getYear() +
" Lado Oniani - DropSuit. All Rights Reserved.\n\n";
const libName = "DropSuit NLP module library function:\n";
const line =
"\n———————————————————————————————————————————————————————————\n\n";
const divider =
"\n-----------------------------------------------------------\n";
const libraryInformation = line + liblink + libName;
const functionDescription = `${libraryInformation}
dnkscr(null/string, integer, integer)
Input:
string: Input sentence raw string, or keep NULL to process constructor 'input'.
integer: Derivative noun search level depth parameter arguments (1-3).
array: 'Rootkeys' json key value lists.
proctype: Processing type, either 0 or 1. 0 doesn't count repeated keys, 1 allows repeated key counting.
Processes default object instance json key value (rootkeys),
including the (req_arr: requests) and (res_arr: responses) array patterns.
Output object:
score(): Direct or derivative noun root keys inference score count.
Flowchart:
┌──────────────────────┐
│ Input Sentence Words
└──┬───────────────────┘
┌──┴────────────┐
│ Extract Nouns
└──┬────────────┘
┌──┴───────────────────┐
│ Derivative Sentences
└──┬───────────────────┘
┌──┴─────────────────────┐
│ Derivative Sent. Nouns
└──┬─────────────────────┘
┌──┴────────────────┐
│ Compare with Keys
└──┬────────────────┘
┌──┴────────────────────────┐
│ If equal incr. Root Value
└──┬────────────────────────┘
┌──┴────────────────────────┐
│ Count & Weigh Oppositions
└──┬────────────────────────┘
┌──┴───────────────────────┐
│ Score highest Peak Value
└─┬────────────────────────┘
┌─┴──────────────┐
│ Downward Curve
└────────────────┘
${divider}`;
const displayInfoData = {
descript: functionDescription,
line: line,
};
return displayInfoData;
}
function getYear() {
return new Date().getFullYear();
}
//#endregion
//#region Modules
module.exports = {
displayInfoData,
};
//#endregion