mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 00:31:35 +00:00
- Core Go application with GraphQL API using gqlgen - Comprehensive data models for literary works, authors, translations - Repository pattern with caching layer - Authentication and authorization system - Linguistics analysis capabilities with multiple adapters - Vector search integration with Weaviate - Docker containerization support - Python data migration and analysis scripts - Clean architecture with proper separation of concerns - Production-ready configuration and middleware - Proper .gitignore excluding vendor/, database files, and build artifacts
16 lines
312 B
Go
16 lines
312 B
Go
package linguistics
|
|
|
|
import (
|
|
"testing"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestLinguaLanguageDetector_DetectLanguage(t *testing.T) {
|
|
d := NewLinguaLanguageDetector()
|
|
code, ok := d.DetectLanguage("This is an English sentence.")
|
|
require.True(t, ok)
|
|
require.NotEmpty(t, code)
|
|
}
|
|
|
|
|