sillsdev / sillsdev/languageforge-lexbox
Model Homograph number
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 9
- Forks
- 8
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 49
Description
Describe the feature
Entries disambiguate when they have the same headword by homograph number. In LCM that's in the ILexEntry.HomographNumber property. We should support this field in MiniLcm. It's not clear how to support this in harmony, but for now we can let there be duplicates, but when creating an entry the API should try to determine the next homograph number. This is done by checking to see if the headword is exactly the same as another one which exists in the db. A simple query like select max(homographNumber) from entries where headword = :newHeadword should give us the homograph number. We should only try to find it when the number from the API is 0 (or default if we let it be null)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the MiniLcm entry-creation API and inspect how Entries are created and how HomographNumber is represented. Check the existing entry lookup or database query path for matching headwords, then verify that an explicit nonzero number is preserved while a zero or default value is derived from existing entries. Done means duplicate headwords receive the next homograph number without resolving Harmony support.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, backend, database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100