We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I do not know if this is an implementation issue or a feature. Full sub-patterns are not matched if the text contains the pattern.
package main import ( "fmt" gf "github.com/waltsmith88/go-flashtext" "os" ) func main() { keywordProcessor := gf.NewKeywordProcessor() keywordProcessor.AddKeywordsFromList([]string{"retractable", "able"}) cleanNameList := keywordProcessor.ExtractKeywords("it is so retractable") fmt.Printf("Found %v keywords\n", len(cleanNameList)) for _, keyword := range cleanNameList { fmt.Fprintf(os.Stderr, "%v\n", keyword) } }
Found 2 keywords retractable able
Found 1 keywords retractable
The text was updated successfully, but these errors were encountered:
I do not know if this is an implementation issue or a feature. Full sub-patterns are not matched if the text contains the pattern. Test code package main import ( "fmt" gf "github.com/waltsmith88/go-flashtext" "os" ) func main() { keywordProcessor := gf.NewKeywordProcessor() keywordProcessor.AddKeywordsFromList([]string{"retractable", "able"}) cleanNameList := keywordProcessor.ExtractKeywords("it is so retractable") fmt.Printf("Found %v keywords\n", len(cleanNameList)) for _, keyword := range cleanNameList { fmt.Fprintf(os.Stderr, "%v\n", keyword) } } Expected result Found 2 keywords retractable able Result Found 1 keywords retractable
This requires you to do the participle matching yourself
Sorry, something went wrong.
No branches or pull requests
I do not know if this is an implementation issue or a feature.
Full sub-patterns are not matched if the text contains the pattern.
Test code
Expected result
Result
The text was updated successfully, but these errors were encountered: