Skip to content
New issue

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

[Bug]: allowCompoundWords does not work for some cases #6735

Open
1 task done
chunjiw opened this issue Jan 1, 2025 · 1 comment
Open
1 task done

[Bug]: allowCompoundWords does not work for some cases #6735

chunjiw opened this issue Jan 1, 2025 · 1 comment

Comments

@chunjiw
Copy link

chunjiw commented Jan 1, 2025

Kind of Issue

Runtime - command-line tools

Tool or Library

cspell

Version

8.17.1

Supporting Library

Not sure / None

OS

All of them

OS Version

Newest macOS and Linux

Description

My config is

{
    "allowCompoundWords": true
}

The test file is

curr max
currmax

result good
resultgood

The spell check result is
Screenshot 2025-01-01 at 3 08 01 PM

I'm just confused why "currmax" is considered wrong even though both "curr" and "max" are OK.

I'm aware that set "allowCompoundWords" to true is a source of many reported issues here, but for me it is the intended behavior, except sometimes it fails. This is my most recent example.

Steps to Reproduce

  1. Create test file as above
  2. Set "allowCompoundWords" to true
  3. Run cspell check <testfilename>

Expected Behavior

All words in the text above should pass spell check.

Additional Information

No response

cspell.json

{
    "allowCompoundWords": true
}

cspell.config.yaml

No response

Example Repository

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Jason3S
Copy link
Collaborator

Jason3S commented Jan 2, 2025

@chunjiw,

There is a limitation on the compounding: all words must be in the same dictionary.

cspell trace --allow-compound-words currmax 

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants