Commit Graph

94 Commits

Author SHA1 Message Date
7b520e5793 refactor: possibleNextsを手動で列挙せず、自動で列挙できるようにした 2025-07-21 18:01:05 +09:00
59cde2a2ca Merge pull request #224 from azooKey/refactor/remove_complicated_boundary_checker
refactor: 特定のローマ字かな変換テーブルを前提にした複雑な境界チェックを廃止する
2025-07-21 17:33:47 +09:00
cf6139e245 test: add tests for Template 2025-07-21 11:18:32 +09:00
80be12f3ef feat: add session CLI for dynamic user dictionary 2025-07-21 11:18:18 +09:00
031f3f466c fix: input kimi and then delete, you won't get any conversion result 2025-07-15 14:52:35 -07:00
48c267f47e fix: itta-then-delete crash 2025-07-15 14:05:44 -07:00
1757546802 fix: test build error 2025-07-15 09:53:16 -07:00
2b2329d50e refactor :remove ad-hoc impl 2025-07-14 22:55:29 -07:00
d787e88efd fix: these values need BOS 2025-07-14 14:10:57 -07:00
58e18f2a88 feat: add tests for typo 2025-07-14 13:55:31 -07:00
b9bd88a247 refactor: clean up API 2025-07-15 05:02:29 +09:00
16363be738 fix: now FullInputProcessing.swift natively works with new index system 2025-07-14 21:17:33 +09:00
02fcdd4dc1 wip: test is not passing, but commit/push it for
working in another env
2025-07-14 00:42:53 +09:00
ee17b238a2 feat: インデックスの整合性を取るためのAPIを追加 2025-07-12 01:52:59 +09:00
704fa9871f feat: Latticeの操作をconvertTargetベースのindexとinputベースのindexの二重化 2025-07-10 01:12:11 +09:00
947ca5e689 fix: input rangeの間違った設定を修正 2025-07-06 18:51:46 +09:00
9d66ef0851 fix: 動的ユーザ辞書が適切に読めていなかった問題を修正 2025-07-06 16:57:27 +09:00
b29fa62f17 fix: minor fixes 2025-07-03 22:51:35 +09:00
fe2c1ec4ae feat: getLOUDSData関数をgetLOUDSDataInRange関数に統合。最適化を行っていない実装にもかかわらず、従来実装の1.2倍程度の高速化効果が得られる 2025-06-29 19:52:27 +09:00
2e61ad1638 fix: depth関連の実装を適切に修正 2025-06-29 15:01:20 +09:00
763b059a45 feat: support roman version of pruning 2025-06-29 14:16:25 +09:00
eb4e669b2b feat: typo correctionの枝刈りを実装し、direct入力のケースでTestFullConversionの実行速度が1.6倍に向上 2025-06-29 12:30:34 +09:00
d20f4210c3 refactor: rename api 2025-06-29 01:53:19 +09:00
74d4d412c3 refactor: 辞書検索関連の関数の実装を統合し、名前を整理 (#209)
* perf: 同じloudsに対する検索をバルク処理することによって、処理の効率化を実現

* fix: bug

* test: add typo correction test

* chore: finalize imp;

* feat: update search-related impls
2025-06-27 23:21:11 +09:00
f5037e393c perf: 同じloudsに対する検索をバルク処理することによって、処理の効率化を実現 (#208)
* perf: 同じloudsに対する検索をバルク処理することによって、処理の効率化を実現

* fix: bug

* test: add typo correction test

* chore: finalize imp;
2025-06-27 22:32:46 +09:00
a1cb34e81c test: 「的な」は複合語であり、必ずしも必要ではないので削除 2025-06-04 21:44:06 +09:00
e45671a9f3 test: add basic vocabulary check for all prefixes, to avoid collapse 2025-06-02 23:14:23 +09:00
2569d8475e fix: forget memoryの実装を「粗い」チェックに変更し、表層形の一致のみで判断するようにした 2025-06-02 22:32:17 +09:00
b9cd6833da chore: remove comment 2025-06-01 21:47:23 +09:00
13a7cfad96 feat: add test for TemporalLearningMemoryTrie 2025-06-01 21:44:31 +09:00
7af6d81ef6 feat: add forget memory test 2025-06-01 21:39:33 +09:00
53cb1e3b41 fix: update tests 2025-06-01 21:02:27 +09:00
750d9f87e4 fix: fix failed tests and update for clarity 2025-06-01 20:31:36 +09:00
96b0bcce53 Merge branch 'develop' into codex/modify-learningmanager.init-and-add-error-handling 2025-06-01 20:26:39 +09:00
5a4b3e728e test: verify pause file recovery 2025-05-25 19:36:11 +09:00
5e58458895 Add comma separated number special candidate 2025-05-25 18:40:18 +09:00
9c6e30e8b0 Merge pull request #174 from azooKey/feat/update_emoji16.0
feat: use emoji 16.0
2025-04-25 00:19:16 +09:00
db1d2023ca feat: add test and update 2025-04-19 18:30:01 +09:00
eb040124e7 fix: add more test cases 2025-03-30 17:20:07 +09:00
e8f9eb2f80 Update testConvertToTimeExpression to use await for KanaKanjiConverter initialization
* Change `let converter = KanaKanjiConverter()` to `let converter = await KanaKanjiConverter()`
2025-03-30 16:58:10 +09:00
feb5daa5bb Update convertToTimeExpression function to handle edge cases and correct time validation
* **TimeExpression.swift**
  - Change the validation for 3-digit numbers to allow last two digits between 00-59.
  - Change the validation for 4-digit numbers to allow first two digits between 00-24 and last two digits between 00-59.

* **TimeExpressionTests.swift**
  - Update test cases to reflect the new validation rules.
  - Change test input "1360" to "2440" and update expected results accordingly.
  - Update assertions for the modified test cases.
2025-03-30 16:57:46 +09:00
19dbbccd9f Add test cases for convertToTimeExpression function
* **Test cases**
  - Create `KanaKanjiConverter` instance
  - Use `makeDirectInput` to create `ComposingText` instances for test cases
  - Call `convertToTimeExpression` function with different inputs
  - Verify the results using `XCTAssertEqual` and `XCTAssertTrue`

* **Helper function**
  - Add `makeDirectInput(direct input: String) -> ComposingText` helper function

* **Concurrency**
  - Use `await` for the call of `convertToTimeExpression`
  - Call `convertToTimeExpression` outside of XCTest function
2025-03-30 16:55:34 +09:00
65ac2fa3aa Update testConvertToTimeExpression function to use await for convertToTimeExpression calls
* Ensure `convertToTimeExpression` function is called asynchronously in all test cases
2025-03-30 16:48:17 +09:00
ac8dfc8dc3 Update test cases for current convertToTimeExpression signature
* Add makeDirectInput function to create ComposingText instances
* Update testConvertToTimeExpression to use makeDirectInput for input conversion
2025-03-30 16:44:45 +09:00
3b6d63c8d3 Add async/await to test functions in TimeExpressionTests.swift
* **testConvertToTimeExpression**
  - Change function signature to `async throws`
  - Initialize `KanaKanjiConverter` with `await`

* **testToTimeExpressionCandidates**
  - Change function signature to `async throws`
  - Initialize `KanaKanjiConverter` with `await`
2025-03-30 16:38:22 +09:00
ad580d5214 feat: Add time expression conversion function
Fixes #170

Add functionality to convert 3-digit and 4-digit numbers into time expressions in the format 'HH:MM'.

* Add `convertToTimeExpression` function in `Sources/KanaKanjiConverterModule/Converter/TimeExpression.swift` to handle the conversion.
* Modify `Sources/KanaKanjiConverterModule/Converter/KanaKanjiConverter.swift` to include the new function and call it within `getWiseCandidate`.
* Add tests in `Tests/KanaKanjiConverterModuleTests/ConverterTests/TimeExpressionTests.swift` to ensure the new function works correctly.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/azooKey/AzooKeyKanaKanjiConverter/issues/170?shareId=XXXX-XXXX-XXXX-XXXX).
2025-03-30 16:32:25 +09:00
ebaa31721c refactor: clear Graph-based input impls 2025-03-08 18:17:21 +09:00
531c6fe0fb feat: SwiftNGramWithMarisaTrieへの依存を除去し、内部の実装をターゲットとして追加 (#153) 2025-02-09 20:09:01 +09:00
e5214c3d5c feat: Enhance email address conversion feature
Fixes #75

Enhance the email address conversion feature to filter suggestions based on partial domain inputs.

* Update `toEmailAddressCandidates` function in `Sources/KanaKanjiConverterModule/Converter/EmailAddress.swift` to filter suggestions based on the characters before '@'.
* Add logic to check if the input ends with '@' and filter the suggestions based on the characters before '@'.
* Generate suggestions for email domains that match the partial domain input.
* Add tests in `Tests/KanaKanjiConverterModuleTests/ConverterTests/EmailAddressConversionTests.swift` to verify the new filtering functionality for partial domain inputs like '@g' and '@y'.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ensan-hcl/AzooKeyKanaKanjiConverter/issues/75?shareId=XXXX-XXXX-XXXX-XXXX).
2025-02-09 00:14:32 +09:00
fe3fe96e9b feat: use azooKey_emoji_dictionary_storage (#146)
* feat: use azooKey_emoji_dictionary_storage

* feat: add test

* fix: test case

* feat: fix build error

* fix: build error

* fix: fix android build

* fix: confirm libicu-dev is installed

* test: add non-empty test case

* fix: continue on empty line
2024-12-01 00:59:27 +09:00