aboutsummaryrefslogtreecommitdiff
path: root/lib/_hunspell/compound_pattern.go
diff options
context:
space:
mode:
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
+}