Skip to content

Commit f201db9

Browse files
committed
docs: update todo.md with Issue #72 proper noun fix details
— claude opus 4.5
1 parent 05050b4 commit f201db9

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

memory/todo.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,23 @@
2222
- Added try-catch protection in `clearExpiredAndGetHistory()`
2323
- Entries truncated for display only; full content preserved for paste
2424

25-
### Issue #72: Auto-Capitalize "I" Words
25+
### Issue #72: Auto-Capitalize "I" Words + Proper Noun Support
2626
- ✅ Implemented: Automatically capitalize "I" and contractions (a16a95f5)
2727
- **Feature**: Auto-capitalizes "i", "i'm", "i'll", "i'd", "i've" when typing or swiping
2828
- **Implementation**:
2929
- Added `AUTOCAPITALIZE_I_WORDS` default and `autocapitalize_i_words` setting
3030
- Added `capitalizeIWord()` helper in SuggestionHandler
3131
- Applied in: prediction transforms, suggestion selection, word completion
3232
- **Works independently**: Capitalizes even if autocorrect is disabled
33+
- ✅ Fixed: Autocorrect now preserves capitalization (29dd10e6)
34+
- "Teh" → "The" (not "the"), "TEH" → "THE"
35+
- Added `preserveCapitalization()` helper
36+
- ✅ Fixed: Proper noun case preserved in user dictionary (05050b47)
37+
- **Root cause**: `loadCustomAndUserWords()` lowercased all words for dictionary lookup
38+
- **Fix**: Added `userWordOriginalCase` map in WordPredictor to track original case
39+
- When user adds "Boston", stored as "Boston", predicted as "Boston"
40+
- Added `applyUserWordCase()` and `applyUserWordCaseToList()` helpers
41+
- Applied to prediction output in `predictWordsWithContext()`
3342

3443
### Code Review (v1.2.5 → HEAD)
3544
- Reviewed 39 changed Kotlin files, 3000+ lines added

0 commit comments

Comments
 (0)