2026-03-29 18:41:25 +08:00
|
|
|
package content
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/go-enry/go-enry/v2"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
2026-04-07 07:12:00 +08:00
|
|
|
Version = "1.0.0-beta"
|
2026-03-29 18:41:25 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func DetectLanguage(text string) string {
|
|
|
|
|
return enry.GetLanguage("", []byte(text))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func Filter(text string) string {
|
|
|
|
|
return FilterBasic(text, nil)
|
|
|
|
|
}
|