diff --git a/CHANGELOG.md b/CHANGELOG.md index ddec9c3..79a1e70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,27 @@ # go-utils + +## [v1.44.1] - 2026-02-12 +### Fixes +- remove contact intent from tanya specs + + + +## [v1.44.0] - 2026-02-12 +### New Features +- rentangin time parser ([#75](https://github.com/kumparan/go-utils/issues/75)) + + + +## [v1.43.0] - 2026-01-21 +### New Features +- add log http response header ([#74](https://github.com/kumparan/go-utils/issues/74)) + + -## [v1.42.1] - 2025-10-23 +## [v1.42.1] - 2025-10-30 ### Fixes -- remove side effect from map random ordering on FindDifferencesFromSlices +- remove side effect from map random ordering on FindDifference… ([#73](https://github.com/kumparan/go-utils/issues/73)) @@ -318,11 +336,11 @@ - add money formatter for multiple currencies ([#13](https://github.com/kumparan/go-utils/issues/13)) - -## [v1.8.0] - 2020-12-10 - ## [v1.7.1] - 2020-12-10 + + +## [v1.8.0] - 2020-12-10 ### New Features - add formatter for indonesian money and date @@ -387,7 +405,10 @@ - init go-utils -[Unreleased]: https://github.com/kumparan/go-utils/compare/v1.42.1...HEAD +[Unreleased]: https://github.com/kumparan/go-utils/compare/v1.44.1...HEAD +[v1.44.1]: https://github.com/kumparan/go-utils/compare/v1.44.0...v1.44.1 +[v1.44.0]: https://github.com/kumparan/go-utils/compare/v1.43.0...v1.44.0 +[v1.43.0]: https://github.com/kumparan/go-utils/compare/v1.42.1...v1.43.0 [v1.42.1]: https://github.com/kumparan/go-utils/compare/v1.42.0...v1.42.1 [v1.42.0]: https://github.com/kumparan/go-utils/compare/v1.41.0...v1.42.0 [v1.41.0]: https://github.com/kumparan/go-utils/compare/v1.40.2...v1.41.0 @@ -439,9 +460,9 @@ [v1.12.0]: https://github.com/kumparan/go-utils/compare/v1.11.0...v1.12.0 [v1.11.0]: https://github.com/kumparan/go-utils/compare/v1.10.0...v1.11.0 [v1.10.0]: https://github.com/kumparan/go-utils/compare/v1.9.0...v1.10.0 -[v1.9.0]: https://github.com/kumparan/go-utils/compare/v1.8.0...v1.9.0 -[v1.8.0]: https://github.com/kumparan/go-utils/compare/v1.7.1...v1.8.0 -[v1.7.1]: https://github.com/kumparan/go-utils/compare/v1.7.0...v1.7.1 +[v1.9.0]: https://github.com/kumparan/go-utils/compare/v1.7.1...v1.9.0 +[v1.7.1]: https://github.com/kumparan/go-utils/compare/v1.8.0...v1.7.1 +[v1.8.0]: https://github.com/kumparan/go-utils/compare/v1.7.0...v1.8.0 [v1.7.0]: https://github.com/kumparan/go-utils/compare/v1.6.0...v1.7.0 [v1.6.0]: https://github.com/kumparan/go-utils/compare/v1.5.0...v1.6.0 [v1.5.0]: https://github.com/kumparan/go-utils/compare/v1.4.0...v1.5.0 diff --git a/tanya/specs.go b/tanya/specs.go index 5e5aac5..dd5a639 100644 --- a/tanya/specs.go +++ b/tanya/specs.go @@ -19,7 +19,6 @@ const ( IntentLocation Intent = "location" IntentTime Intent = "time" IntentPrice Intent = "price" - IntentContact Intent = "contact" IntentQuestion Intent = "question" // general fallback IntentOther Intent = "other" @@ -97,9 +96,6 @@ var intentTable = []IntentSpec{ {IntentPrice, 50, []Rule{ {terms("harga", "biaya", "tarif", "fee", "ongkir"), 2, MatchTypeContains, 0}, }}, - {IntentContact, 50, []Rule{ - {terms("kontak", "contact", "telepon", "telp", "nomor", "email", "whatsapp", "wa"), 2, MatchTypeContains, 0}, - }}, // fallback tanya umum {IntentQuestion, 10, []Rule{ {terms("apa", "apakah", "bagaimana", "gimana", "kapan", "siapa", "dimana", "di mana", "kemana", "ke mana", "berapa"), 2, MatchTypeContains, 0}, diff --git a/tanya/tanya.go b/tanya/tanya.go index e635af0..0405a3b 100644 --- a/tanya/tanya.go +++ b/tanya/tanya.go @@ -11,7 +11,7 @@ import ( func IsQuestion(q string) bool { intent := ClassifyIntent(q) switch intent { // nolint:exhaustive - case IntentPrice, IntentContact, IntentOther: + case IntentPrice, IntentOther: return false default: return true diff --git a/tanya/tanya_test.go b/tanya/tanya_test.go index 59a6eb3..55278d9 100644 --- a/tanya/tanya_test.go +++ b/tanya/tanya_test.go @@ -147,7 +147,6 @@ func TestClassifyIntent(t *testing.T) { {"mau makan kemana siang ini", IntentLocation}, {"kapan jadwal konser hari ini", IntentTime}, {"berapa harga paket premium", IntentPrice}, - {"kontak cs atau nomor wa resmi", IntentContact}, {"toyota", IntentOther}, {"download aplikasi android", IntentOther},