Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 30 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
# go-utils

<a name="v1.44.1"></a>
## [v1.44.1] - 2026-02-12
### Fixes
- remove contact intent from tanya specs


<a name="v1.44.0"></a>
## [v1.44.0] - 2026-02-12
### New Features
- rentangin time parser ([#75](https://github.com/kumparan/go-utils/issues/75))


<a name="v1.43.0"></a>
## [v1.43.0] - 2026-01-21
### New Features
- add log http response header ([#74](https://github.com/kumparan/go-utils/issues/74))


<a name="v1.42.1"></a>
## [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))


<a name="v1.42.0"></a>
Expand Down Expand Up @@ -318,11 +336,11 @@
- add money formatter for multiple currencies ([#13](https://github.com/kumparan/go-utils/issues/13))


<a name="v1.8.0"></a>
## [v1.8.0] - 2020-12-10

<a name="v1.7.1"></a>
## [v1.7.1] - 2020-12-10

<a name="v1.8.0"></a>
## [v1.8.0] - 2020-12-10
### New Features
- add formatter for indonesian money and date

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions tanya/specs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion tanya/tanya.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion tanya/tanya_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},

Expand Down