summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2026-08-02 09:46:14 +0800
committerSadeep Madurange <sadeep@asciimx.com>2026-08-02 11:01:22 +0800
commite0f92ff24f34d7f8c0227e03d1e17b41447e542a (patch)
tree32ec86ec60af92cefe50140ab550f4eba2fd1e51
parent471390655f272892b354d7dd85a331733ccd48d0 (diff)
downloadlex-e0f92ff24f34d7f8c0227e03d1e17b41447e542a.tar.gz
Add figurative, general tone, standard conversational word to the prompt.
-rw-r--r--main.c26
-rw-r--r--test_prompts.txt23
2 files changed, 26 insertions, 23 deletions
diff --git a/main.c b/main.c
index bac9c43..cae13c5 100644
--- a/main.c
+++ b/main.c
@@ -8,28 +8,28 @@
#include "llama.h"
#define SYSTEM_PROMPT \
- "You are a lexicographer. Define the target word strictly in the context provided.\n\n" \
+ "You are a lexicographer. Define the target word in the context provided.\n\n" \
"Output format strictly as follows:\n" \
- "<WORD> (<part of speech>) — <Formality: Conversational|Formal|Literary|Archaic>\n\n" \
+ "<WORD> (<part of speech>) — <Formality: Conversational|Formal|Literary|Figurative|Archaic>\n\n" \
"DEFINITION:\n" \
- "<terse, highly accurate definition>\n\n" \
- "WHEN TO USE:\n" \
- "<1 sentence on when to use>\n\n" \
+ "<terse, highly accurate definition in context>\n\n" \
+ "GENERAL TONE:\n" \
+ "<1 terse note on emotional/attitudinal charge/register if relevant. Include standard conversational alternative where applicable.>\n\n" \
"EXAMPLES:\n" \
"1. <example 1>\n" \
"2. <example 2>\n\n" \
"EXAMPLE INPUT:\n" \
- "Define torrent as in 'a torrent of rain poured down'\n\n" \
+ "Define tumultuous as in 'the species endured a tumultuous period of war and renewal'\n\n" \
"EXAMPLE OUTPUT:\n" \
- "TORRENT (noun) — Literary\n\n" \
+ "TUMULTUOUS (adjective) — Literary / Formal\n\n" \
"DEFINITION:\n" \
- "A strong and fast-moving stream of water or other liquid.\n\n" \
- "WHEN TO USE:\n" \
- "Use when describing a sudden, overwhelming rush of water or emotion.\n\n" \
+ "Marked by wild disorder, chaotic disturbance, or intense emotional and political turmoil.\n\n" \
+ "GENERAL TONE:\n" \
+ "Elevated / dramatic (common in historical or narrative writing; standard conversation often favors \"turbulent\" or \"chaotic\").\n\n" \
"EXAMPLES:\n" \
- "1. A torrent of rain poured down on the village.\n" \
- "2. She faced a torrent of angry emails after the announcement.\n\n" \
- "CRITICAL: Do NOT echo the user's input, context sentence, or 'DEFINE' command. Start immediately with <WORD>."
+ "1. The species endured a tumultuous period of war and renewal.\n" \
+ "2. After months of tumultuous debate, the parliament finally reached a compromise.\n\n" \
+ "DO NOT add anything after the examples. DO NOT include the word in the definition."
#define MAX_TOKENS 300
diff --git a/test_prompts.txt b/test_prompts.txt
index c2bd08f..d0168ff 100644
--- a/test_prompts.txt
+++ b/test_prompts.txt
@@ -1,10 +1,13 @@
-Define imperious as in 'an imperious necessity drove him forward on his quest'
-Define despondency as in 'he fell into a state of deep, uninterrupted despondency'
-Define arduous as in 'the long and arduous journey through the frozen mountains'
-Define ephemeral as in 'human history appeared as a brief and ephemeral flash in cosmic time'
-Define austere as in 'they lived under the austere discipline of their new order'
-Define venerable as in 'the venerable monuments of a long-forgotten civilization'
-Define tumultuous as in 'the species endured a tumultuous period of war and renewal'
-Define imperturbable as in 'he maintained an imperturbable calm despite the surrounding chaos'
-Define singular as in 'he was a man of a singular and unpredictable temperament'
-Define enigmatic as in 'he left behind an enigmatic smile and no further explanation'
+Define imperious in 'an imperious necessity drove him forward on his quest'
+Define despondency in 'he fell into a state of deep, uninterrupted despondency'
+Define arduous in 'the long and arduous journey through the frozen mountains'
+Define ephemeral in 'human history appeared as a brief and ephemeral flash in cosmic time'
+Define austere in 'they lived under the austere discipline of their new order'
+Define venerable in 'the venerable monuments of a long-forgotten civilization'
+Define tumultuous in 'the species endured a tumultuous period of war and renewal'
+Define imperturbable in 'he maintained an imperturbable calm despite the surrounding chaos'
+Define singular in 'he was a man of a singular and unpredictable temperament'
+Define enigmatic in 'he left behind an enigmatic smile and no further explanation'
+Define bestial in 'You submitted to be the slave of bestial men'
+Define flung in 'As if plunged in a stormy water, I was flung about wildly, and felt myself sinking.'
+Define hewers in 'You might by this time have made the Bags hewers of wood and drawers of water'