Skip to content

Instantly share code, notes, and snippets.

View Vanege's full-sized avatar
💭
🏳️‍🌈 💚 😴 🐦 🦊

Vanege

💭
🏳️‍🌈 💚 😴 🐦 🦊
View GitHub Profile
@Vanege
Vanege / krei_malsimilajn_vortojn.js
Created November 16, 2017 00:22
[Planlingvoj] Aŭtomate krei vortojn kiuj estas malsamaj de almenaŭ X literoj/grupoj
// Skripto por krei vortojn kun minimumo de literaj diferencoj
const DIFERENCA_MINIMUMO = 2;
// Difini la formon de vorto kaj la permesitajn literojn por ĉiu tipo de litero
const formo = "vKVK";
const literoj = {
v: [' ', 'a', 'e', 'i', 'o', 'u'],
K: ['m', 'n', 'p', 'k', 's', 't', 'l'],
V: ['a', 'e', 'i', 'o', 'u']
tradicia nova (ĉefa) etimologio komento
patr(in)o parento en:parent; fr:parent
av(in)o atavo la:atavus; eo:atavismo
onkl(in)o zio it:zio; -a
fil(in)o anako id:anak preferindas ido aŭ infano
frat(in)o sibo en:sib(ling)
nep(in)o nepoto io:nepoto; la:nepos; eo:nepotismo
vidv(in)o viduo la:vidua
edz(in)o spozo io:spozo; it:sposo; -a
fraŭl(in)o nespozo
Laŭ la unua principo:
pajtro (el patro)
frajto (el frato)
ajvo (el avo)
nejpo (el nepo)
ojnklo (el onklo)
nejvo (el nevo)
kujzo (el kuzo)
ejdzo (el edzo)
knajbo (el knabo)
*ge-vorto* Parentismo J-sistemo
gepatro parento pajtro
geavo atavo ajvo
gefilo ido; infano; anako fejlo
gefrato sibo frajto
geonklo zio; parentsibo ojnklo
genepo nepoto nejpo
gevidvo viduo vejdvo
geedzo spozo ejdzo
gefraŭlo nespozo frajlo
@Vanege
Vanege / globasa-hover-dictionary-with-data-already-fetched-20250107-.js
Last active January 13, 2025 19:23
Script to activate a Globasa hover-dictionary on any page. Just copy-paste it in the console. The Globasa dictionary from 2025-01-07 is included, so the script will work even on websites that block HTTP calls. You can also try with the script that does not include the dictionary but makes an external call: https://gist.github.com/Vanege/c8518a96…
This file has been truncated, but you can view the full file.
(function () {
// Fetch required dictionary data
async function fetchDictionaries() {
try {
const [standardResp, searchTermsResp] = await Promise.all([
{ "-abil": { "term": "-abil", "word class": "t xfik", "category": "affix", "trans": { "eng": [["which can (be)", "-able", "-ible"]], "epo": [["-pova", "-kapabla"], ["-pove", "-kapable"]], "spa": [["que puede", "-il"]], "deu": [["f\u00e4hig", "in der Lage", "-f\u00e4hig", "-tauglich"]], "fra": [], "rus": [], "zho": [] }, "etymology": { "am oko": ["abil"] } }, "-bimar": { "term": "-bimar", "word class": "t xfik", "category": "affix", "trans": { "eng": [["sick"]], "epo": [["-malsana"]], "spa": [["enfermo de"]], "deu": [], "fra": [], "rus": [], "zho": [] }, "etymology": { "am oko": ["bimar"] } }, "-bisu": { "term": "-bisu", "word class": "xfik", "category": "affix", "trans": { "eng": [["which must be", "must-"]], "epo": [["-enda"], ["-ende"]], "spa": [["que tiene que ser", "que debe ser"]], "deu": [], "fra": [], "rus": [], "zho": [] }, "etymo
@Vanege
Vanege / globasa-hover-dictionary.js
Last active January 13, 2025 19:40
Script to activate a Globasa hover-dictionary on any page. Just copy-paste it in the console. It makes an extern query to the dictionary (to get the most up-to-date version) so it might not work on some websites. If the script does not work, you can try with the script that already includes the dictionary: https://gist.github.com/Vanege/9960ec5d…
(function () {
// Fetch required dictionary data
async function fetchDictionaries() {
try {
const [standardResp, searchTermsResp] = await Promise.all([
fetch('https://cdn.globasa.net/api2/standard.json'),
fetch('https://cdn.globasa.net/api2/search_terms_eng.json')
]);
return {
globasaDictionary: await standardResp.json(),
@Vanege
Vanege / globasa-capitalize-stressed-vowels.js
Last active January 23, 2025 20:31
Script for browser console that capitalize the vowels that must be stressed. It will help you improve your Globasa pronunciation. https://xwexi.globasa.net/eng/gramati/abece-ji-lafuzu
// 0) Open your browser developer tools, then go on the Console tab
// 1) Paste the following code, then Enter
// 2) Type in the console: window.textToProcess = `Hinto sen misal. Am alogi hin texto`
// 3) Enter
// 4) Type in the console: console.log(processText(window.textToProcess))
// 5) Enter, you will see the formatted text. Stressed vowels are capitalized
// 6) You can start again at 2)
// copy paste the code from here