twl-generator 1.3.1 → 1.3.2

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
@@ -159,9 +159,9 @@ The generated TSV contains these columns:
159
159
  | OrigWords | The matched word(s) from the text |
160
160
  | Occurrence | Which occurrence of this word in the verse |
161
161
  | TWLink | Link to Translation Words article (rc://*/tw/dict/bible/...) |
162
- | Strongs | Original Strong's number |
163
162
  | GLQuote | English text context from ULT |
164
163
  | GLOccurrence | Occurrence number in English context |
164
+ | Strongs | Original Strong's number |
165
165
  | Variant of | Original term if morphological variant was used |
166
166
  | Disambiguation | List of other possible articles |
167
167
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twl-generator",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Generate term-to-article lists from unfoldingWord en_tw archive for Bible books. Works in both Node.js (CLI) and React.js (browser) environments.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -713,7 +713,7 @@ export async function generateTwlByBook(bookCode, options = {}) {
713
713
  };
714
714
 
715
715
  // New header order: Reference, ID, Tags, OrigWords, Occurrence, TWLink, Strongs, GLQuote, GLOccurrence
716
- const finalHeaderBase = ['Reference', 'ID', 'Tags', 'OrigWords', 'Occurrence', 'TWLink', 'Strongs', 'GLQuote', 'GLOccurrence'];
716
+ const finalHeaderBase = ['Reference', 'ID', 'Tags', 'OrigWords', 'Occurrence', 'TWLink', 'GLQuote', 'GLOccurrence', 'Strongs'];
717
717
  const usedIds = new Set();
718
718
  const genId = () => {
719
719
  const letters = 'abcdefghijklmnopqrstuvwxyz';
@@ -741,9 +741,9 @@ export async function generateTwlByBook(bookCode, options = {}) {
741
741
  c[A.OrigWords],
742
742
  c[A.Occurrence],
743
743
  c[A.TWLink],
744
- strongsVal,
745
744
  c[A.GLQuote],
746
745
  c[A.GLOccurrence],
746
+ strongsVal,
747
747
  ];
748
748
  preparedRows.push(newRow);
749
749
  }
@@ -756,9 +756,9 @@ export async function generateTwlByBook(bookCode, options = {}) {
756
756
  OrigWords: 3,
757
757
  Occurrence: 4,
758
758
  TWLink: 5,
759
- Strongs: 6,
760
- GLQuote: 7,
761
- GLOccurrence: 8,
759
+ GLQuote: 6,
760
+ GLOccurrence: 7,
761
+ Strongs: 8,
762
762
  };
763
763
 
764
764
  // 5) pick best TWLink based on GLQuote terms using Strongs column; include Variant of column