Skip to content

[BUG]: Non-Latin words are case-sensitive #269

Description

@winterwolf

Issue Description

Non-Latin words are case-sensitive

Operating System

Linux (Arch)

Editor

VSCode

Codebook Version

0.3.37

Configuration

dictionaries = ["en_us", "en_gb", "ru"]
words = [
    "cachy",
    "cwebp",
    "konsave",
    "magick",
    "numpad",
    "nvidia",
    "pacman",
    "ГБ",
    "ИИ",
    "Линкуем",
    "апгрейдить",         # Апгрейдить апгрейдить
    "виндовом",           # Виндовом виндовом 
    "дефолтный",
    "дотфайлов",
    "дотфайлы",
    "коммиты",
    "конфига",
    "кроссплатформенный",
    "лаунчеры",
    "линкуем",
    "линкует",
    "мультипечь",
    "нахер",
    "неинтерактивная",
    "парсит",
    "перелинковать",
    "перелинковки",
    "перелогиньтесь",
    "пересоздаёт",
    "пиксельный",
    "подмодулем",
    "подмодуль",
    "подмодуля",
    "подмодулями",
    "прилинкуйте",
    "рассчёта",
    "репозитории",
    "репозитория",
    "сертралин",
    "симлинк",
    "симлинка",
    "симлинки",
    "симлинком",
    "херню",
    "эмодзи",
    "ютуба",
]
flag_words = ["todo", "fixme"]
include_paths = ["**"]
ignore_paths = ["target/**/*", "**/*.json", ".git/**/*"]
ignore_patterns = [
    '\b[ATCG]+\b',
    '\d{3}-\d{2}-\d{4}',
    "^[A-Z]{2,}$",
    'https?://[^\s]+',
]
include_tags = ["comment", "string"]
exclude_tags = ["string.heredoc"]

Steps to Reproduce

Image

Expected Behavior

The case should not be taken into account.

Actual Behavior

English words are automatically converted to lowercase when added to the dictionary, but Russian words doesnt.

Code Sample


Log Output

Additional Context

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions