aboutsummaryrefslogtreecommitdiff
path: root/lib/_hunspell/compound_pattern.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-01-25 18:34:47 +0700
committerShulhan <ms@kilabit.info>2025-01-25 18:34:47 +0700
commit144549f86c9aed8cef48f003bab010fe929dfcff (patch)
tree3b6a7e92943257247f06b8c3fd2a6a5b84e5661c /lib/_hunspell/compound_pattern.go
parent72c67cb9c51909fe61346566f19d508ad93bab69 (diff)
downloadpakakeh.go-144549f86c9aed8cef48f003bab010fe929dfcff.tar.xz
lib/hunspell: rename the package to "_hunspell"
The hunspell is still in progress and we did not have time to continue it, so we rename it to _hunspell to prevent it being checked by linters or being imported.
Diffstat (limited to 'lib/_hunspell/compound_pattern.go')
-rw-r--r--lib/_hunspell/compound_pattern.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/_hunspell/compound_pattern.go b/lib/_hunspell/compound_pattern.go
new file mode 100644
index 00000000..b439fd35
--- /dev/null
+++ b/lib/_hunspell/compound_pattern.go
@@ -0,0 +1,23 @@
+// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package hunspell
+
+// compoundPattern define the option for COMPUNDPATTERN.
+//
+// Forbid compounding, if the first word in the compound ends with endchars,
+// and next word begins with beginchars and (optionally) they have the
+// requested flags.
+// The optional replacement parameter allows simplified compound form.
+// The special "endchars" pattern 0 (zero) limits the rule to the unmodified
+// stems (stems and stems with zero affixes):
+//
+// CHECKCOMPOUNDPATTERN 0/x /y
+type compoundPattern struct {
+ end string
+ endFlag string
+ begin string
+ beginFlag string
+ rep string
+}