@hyperfixi/patterns-reference 2.5.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,9 +12,9 @@ npm install @hyperfixi/patterns-reference
12
12
 
13
13
  The package ships with a **pre-populated SQLite database** containing:
14
14
 
15
- - 106 code examples covering hyperscript commands and real-world UI patterns
16
- - 1,378 translations (106 patterns × 13 languages)
17
- - 414 LLM few-shot examples for code generation
15
+ - 164 code examples covering hyperscript commands and real-world UI patterns
16
+ - 3,936 translations (164 patterns × 24 languages)
17
+ - 648 LLM few-shot examples for code generation
18
18
 
19
19
  No setup required - just install and use:
20
20
 
@@ -132,7 +132,7 @@ These scripts are for contributors regenerating the database. **End users don't
132
132
  | `npm run populate` | Full database setup (init + translations + LLM examples) |
133
133
  | `npm run db:init` | Initialize database with seed patterns |
134
134
  | `npm run db:init:force` | Reinitialize database (overwrites existing) |
135
- | `npm run sync:translations` | Generate translations for all 13 languages |
135
+ | `npm run sync:translations` | Generate translations for all 24 languages |
136
136
  | `npm run seed:llm` | Generate LLM few-shot examples |
137
137
  | `npm run validate` | Validate all patterns parse correctly |
138
138
  | `npm run validate:fix` | Validate and update verified_parses flag |
@@ -185,23 +185,18 @@ Prompt/completion pairs for few-shot learning.
185
185
 
186
186
  ## Supported Languages
187
187
 
188
- The database supports 13 languages with different word orders:
189
-
190
- | Language | Code | Word Order |
191
- | ---------- | ---- | ---------- |
192
- | English | en | SVO |
193
- | Spanish | es | SVO |
194
- | French | fr | SVO |
195
- | Portuguese | pt | SVO |
196
- | Indonesian | id | SVO |
197
- | Swahili | sw | SVO |
198
- | Chinese | zh | SVO |
199
- | Japanese | ja | SOV |
200
- | Korean | ko | SOV |
201
- | Turkish | tr | SOV |
202
- | Quechua | qu | SOV |
203
- | Arabic | ar | VSO |
204
- | German | de | V2 |
188
+ The database supports 24 languages with different word orders:
189
+
190
+ | Word Order | Languages |
191
+ | ---------- | ------------------------------------------ |
192
+ | SVO | en, es, fr, pt, it, id, ms, sw, zh, vi, tl |
193
+ | SOV | ja, ko, tr, qu, hi, bn |
194
+ | VSO | ar |
195
+ | V2 | de |
196
+ | Other | ru, uk, pl, th, he |
197
+
198
+ Languages are derived dynamically from `KNOWN_PROFILES` in `@lokascript/semantic`;
199
+ adding a profile there automatically picks up in the next `npm run sync:translations`.
205
200
 
206
201
  ## Integration with @lokascript/semantic
207
202