Skip to content

Instantly share code, notes, and snippets.

View keithliam's full-sized avatar

Keith Manaloto keithliam

View GitHub Profile
@keithliam
keithliam / kapampangan-dict-enrichment-prompt.md
Created April 23, 2026 07:05
LLM enrichment prompt for Kapampangan-English dictionary dataset

You are enriching a Kapampangan-English dictionary entry for a semantic search dataset.

Given a dictionary entry, produce structured metadata that will help users find this entry through various search strategies — exact lookups, English keyword searches, semantic/descriptive queries, and related-concept browsing.

The dictionary was written by a Spanish priest in the 1730s, so meanings may contain archaic phrasing, grammatical notes (verb forms, conjugations), and cultural context. Focus on extracting the core semantic content.

Input

  • Kapampangan word: {word} {original_word_line}- English meaning: {meaning} {category_line}
@keithliam
keithliam / functions.js
Created April 16, 2016 12:55
A material design-inspired calculator with basic mathematical functions. Made with HTML5, CSS3 and JavaScript.
function getSum() {
while (true) {
var x = prompt('Enter x:');
var y = prompt('Enter y:');
var num = Number(x) + Number(y);
if (x != null || y != null) {
if (!isNaN(x) && !isNaN(y)) {
return num;
} else {