Commit a7c0c4a
feat(wasm): Add nyap pratipadika support to WASM bindings
Add `nyap` field to `PratipadikaArgs` struct to support feminine stems
with nyāp pratyayas (ṭāp, ṅīp, etc.) in the WebAssembly API.
This allows JavaScript callers to correctly derive feminine nominal forms
for stems ending in -ā, -ī, -ū without needing to strip the ending and
rely on linga inference.
Example usage:
```javascript
vidyut.deriveSubantas({
pratipadika: { nyap: 'nadI' },
linga: 'Stri',
vibhakti: 'Prathama',
vacana: 'Eka',
})
// Returns: ['nadI']
```
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 487836b commit a7c0c4a
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| 216 | + | |
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
219 | 227 | | |
220 | 228 | | |
221 | 229 | | |
| |||
0 commit comments