novel freq data
This commit is contained in:
1 parent
98c62d8b6d
commit
8750b77bfc
5 files changed
+28
-84424
No files matched your search
+26
-1
@@ -532,6 +532,29 @@ function load_freqlist_narou(filename)
|
||||
}
|
||||
load_freqlist_narou("dict/freqlist_narou.json");
|
||||
|
||||
// narou frequency data
|
||||
let freq_novels = {};
|
||||
|
||||
function load_freqlist_novels(filename)
|
||||
{
|
||||
let req = new XMLHttpRequest();
|
||||
req.addEventListener("load", () =>
|
||||
{
|
||||
if (req.readyState === 4)
|
||||
{
|
||||
console.log("loaded novels freq data");
|
||||
if (req.status === 200)
|
||||
freq_novels = JSON.parse(req.responseText);
|
||||
else
|
||||
console.error(req.statusText);
|
||||
}
|
||||
});
|
||||
req.open("GET", browser.extension.getURL(filename));
|
||||
req.send();
|
||||
return req;
|
||||
}
|
||||
load_freqlist_novels("dict/freqlist_novels.json");
|
||||
|
||||
// deconjugation rules
|
||||
let rules = [];
|
||||
|
||||
@@ -1539,8 +1562,10 @@ function add_extra_info(results, other_settings)
|
||||
let freq = undefined;
|
||||
if(settings.freqlist_mode == 1)
|
||||
freq = freq_vns;
|
||||
else
|
||||
else if(settings.freqlist_mode == 2)
|
||||
freq = freq_narou;
|
||||
else
|
||||
freq = freq_novels;
|
||||
if(freq[reading])
|
||||
{
|
||||
for(let possibility of freq[reading])
|
||||
|
||||
-48528
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
||||
{"の": [["の", 1, 49029.900668304486], ["の", 12, 14532.115372380671], ["の", 121, 766.506205257538], ["野", 3917, 15.088401073229543], ["幅", 63587, 0.009476313365154913]], "た": [["た", 2, 47245.606314464385], ["他", 323, 236.21058043262235], ["多", 6574, 7.399180793243594], ["田", 7315, 6.347182809560261], ["誰", 11285, 3.2694529032572612], ["多", 32145, 0.34016182147354385]], "だ": [["だ", 3, 41269.478459332386], ["ダ", 7195, 6.493677719060784], ["打", 9385, 4.3458910968007665], ["駄", 13239, 2.515489672286698], ["打", 16117, 1.762300680151394], ["駄", 24158, 0.7510133900846253], ["駄", 29246, 0.4546811578739395], ["堕", 32681, 0.32243215312459284], ["舵", 34411, 0.26910210322165673], ["惰", 42498, 0.11885544628915949]], "て": [["て", 4, 41158.53840468226], ["手", 92, 1038.4355790155712]], "は": [["は", 5, 40062.66819938201], ["歯", 886, 89.40824514696163], ["派", 1371, 55.38799521088556], ["葉", 1727, 42.192214593402404], ["刃", 2844, 22.94598743914699], ["波", 4754, 11.606825009888663], ["破", 14562, 2.125600938140698], ["覇", 22117, 0.9266188807580878], ["派", 22282, 0.910372202782029], ["坡", 32771, 0.31919020590699315], ["破", 34456, 0.2677395474024981], ["播", 44306, 0.09886803718081788]], "に": [["に", 6, 38516.002289964], ["二", 65, 1480.634600606501], ["荷", 4667, 11.859036876249103], ["尼", 7021, 6.744103902407461], ["に", 7257, 6.41448672410477], ["似", 13929, 2.305698152945701], ["煮", 14918, 2.033986362904104], ["丹", 26817, 0.5780119710358023]], "を": [["を", 7, 35615.761262161264]], "が": [["が", 8, 26021.102487650045], ["が", 30, 4313.926166779805], ["が", 2695, 24.638814136660752], ["画", 4139, 13.973436235188887], ["蛾", 4731, 11.66465933653282], ["賀", 18671, 1.3338190149942175], ["駕", 29180, 0.45694771267579093], ["娥", 31749, 0.35283121669995154], ["鵞", 31813, 0.35070444040986676], ["河", 39970, 0.15396762653397408], ["我", 42712, 0.11650726172589744], ["が", 43834, 0.1037430401394774], ["雅", 53300, 0.03714263182586819]], "と": [["と", 9, 23043.127780459305], ["と", 34, 3296.867928561189], ["戸", 1377, 55.16889395870577], ["都", 2325, 29.786925235901947], ["と", 2515, 26.889110009584268], ["徒", 3031, 21.166734652411492], ["斗", 11496, 3.177052135844304], ["途", 13147, 2.5447170685633735], ["兎", 30894, 0.38469146345897415], ["堵", 33197, 0.3040674517271958], ["と", 36959, 0.2068362131195635], ["砥", 39120, 0.16703873769834518], ["と", 74297, 0.0003807907863451792]], "する": [["為る", 10, 20792.243999659095], ["擦る", 4005, 14.637081132919702], ["掏る", 26649, 0.5883307781001003], ["する", 30780, 0.3887512715889816]], "も": [["も", 11, 15155.872585707364], ["喪", 14043, 2.274559867116718], ["藻", 15715, 1.8470999434467428]], "いる": [["居る", 13, 14394.092004886399], ["要る", 1289, 58.67420792155471], ["入る", 4428, 12.76805375697699], ["射る", 6392, 7.705437767412469], ["炒る", 24008, 0.7639573391429079], ["鋳る", 37799, 0.19101560148681168], ["イル", 52525, 0.040611157917675576]], "で": [["で", 14, 12668.40428416493], ["で", 261, 313.08467792422243], ["で", 3760, 15.95211686478315], ["デ", 3983, 14.7358939463581], ["出", 5525, 9.478318964147482], ["出", 8086, 5.47793672702508], ["で", 10735, 3.5312550224542463]], "いう": [["言う", 15, 9485.373801648724]], "ある": [["有る", 16, 8643.081020209664], ["或る", 317, 239.57909450438578], ["アル", 8994, 4.649665759136295]], "ない": [["ない", 17, 8557.114640048443], ["無い", 19, 6779.351842954714], ["内", 919, 85.1747980574849], ["内", 6370, 7.740490438875854]], "こと": [["事", 18, 7743.227590079425], ["琴", 7123, 6.588522472576573], ["異", 8256, 5.306517892481912], ["言", 8873, 4.74438134796325], ["古都", 18982, 1.294657715624796], ["糊塗", 29418, 0.4471999553150716], ["こと", 51050, 0.047553740174569085]], "なる": [["成る", 20, 5545.988467705857], ["鳴る", 1071, 72.33883667259833], ["生る", 16205, 1.7454454560620363], ["なる", 29935, 0.4235452067146495]], "れる": [["れる", 21, 5075.8775599247365]], "から": [["から", 22, 5025.135666851019], ["から", 41, 2745.4558976290978], ["殻", 6767, 7.1076579958284025], ["空", 11637, 3.117127671114475], ["から", 18144, 1.4131819108874781], ["カラ", 18744, 1.32322969777847], ["から", 23027, 0.8402063048028963], ["迦羅", 55358, 0.029502929043737615]], "その": [["其の", 23, 5011.061910967771], ["その", 1586, 46.79202937511212], ["園", 48009, 0.06649530202924539]], "です": [["です", 24, 4995.309951252821], ["デス", 15375, 1.9253643102005358]], "ます": [["ます", 25, 4973.532667174146], ["増す", 2135, 32.77167916215002], ["マス", 10878, 3.4636827286931595], ["升", 11203, 3.3057446322093282], ["鱒", 16628, 1.658537885347275]], "それ": [["其れ", 26, 4780.223836964894], ["それ", 18493, 1.3583206686159532], ["ソレ", 32271, 0.3358027312028376], ["其れ", 46206, 0.08067288850156502]], "よう": [["様"Line truncated
|
||||
-35894
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -172,7 +172,7 @@ function defaults()
|
||||
settings.push({
|
||||
id: "freqlist_mode",
|
||||
kind: "combobox",
|
||||
options: ["None", "Visual Novels", "Narou"],
|
||||
options: ["None", "Visual Novels", "Narou", "Novels"],
|
||||
default: 1,
|
||||
label: "Frequency data source"
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user