Commit bfa1362 1 parent 9af60d9 commit bfa1362 Copy full SHA for bfa1362
File tree 3 files changed +19
-0
lines changed
3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,8 @@ class Entry {
169
169
syll,
170
170
test,
171
171
stems,
172
+ fststems,
173
+ possessive,
172
174
rw_domains,
173
175
rw_indices,
174
176
wn_domains,
@@ -229,6 +231,17 @@ class Entry {
229
231
230
232
this . #extractNotes( ) ;
231
233
234
+ if ( possessive ) {
235
+ if ( fststems . length > 1 ) {
236
+ throw new Error ( "Multiple fst stems in CW source" ) ;
237
+ }
238
+ if ( stems . length > 1 ) {
239
+ throw new Error ( "Multiple stems in CW source" ) ;
240
+ }
241
+ const nonPossessive = ( fststems . length > 0 ) ? fststems [ 0 ] : stems [ 0 ] ;
242
+ const htmlInfo = `<table colspan=2><tr><td>Nonposs</td><td><strong>${ nonPossessive } </strong></td></tr><tr><td>Poss</td><td><strong>${ possessive } </strong></td></tr></table>` ;
243
+ this . htmlInfo = htmlInfo ;
244
+ }
232
245
}
233
246
234
247
/**
Original file line number Diff line number Diff line change @@ -107,6 +107,10 @@ function convertEntry({
107
107
wn_domains,
108
108
} ;
109
109
110
+ if ( dataSources . CW . htmlInfo ) {
111
+ linguistInfo . analysis = dataSources . CW . htmlInfo ;
112
+ }
113
+
110
114
// If an entry lacks senses, it's because the definition consists of nothing but notes.
111
115
// In this case, populate a sense based on CW's original definition, without brackets.
112
116
if ( ! senses . length ) {
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ export class ToolboxEntry {
45
45
this . sources = this . getLinesByType ( `src` ) ;
46
46
this . sro = this . getLineByType ( `sro` ) ;
47
47
this . stems = this . getLinesByType ( `stm` ) ;
48
+ this . fststems = this . getLinesByType ( `fststem` ) ;
49
+ this . possessive = this . getLineByType ( `poss` ) ;
48
50
this . syll = this . getLineByType ( `syl` ) ;
49
51
this . rw_domains = this . getLinesByType ( `rw` ) ;
50
52
this . rw_indices = this . getLinesByType ( `rw2` ) ;
You can’t perform that action at this time.
0 commit comments