Skip to content

fix: Search dictionaries using the dictionary's locale case rules, to support Turkish İ and I - #9449

Merged
Jason3S merged 28 commits into
mainfrom
claude/dictionary-locale-word-lookup-d3eb6e
Oct 13, 2026
Merged

Jason3S merged 28 commits into
mainfrom
claude/dictionary-locale-word-lookup-d3eb6e

Conversation

@Jason3S

@Jason3S Jason3S commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Words in a dictionary are no longer reported when finding them needs that language's case rules. With the Turkish dictionary, İnceleme and Ispanak now pass. Fixes #6282.

  • A dictionary uses the case rules of its own locale, set by dictionaryInformation.locale. The Turkish, Azerbaijani, and Lithuanian dictionaries are affected.
  • Rules from one language never apply to another language's dictionary: with "language": "en,tr", a word typed with İ, such as İnside, is still reported.
  • With caseSensitive: true, a word with capitals that are wrong in the dictionary's language, such as Inceleme for İnceleme, is reported.

With "language": "en,tr", checking İnceleme Ispanak Ispanakk İnside:

Before:

sample.md:1:1 - Unknown word (İnceleme)
sample.md:1:10 - Unknown word (Ispanak)
sample.md:1:18 - Unknown word (Ispanakk)
sample.md:1:27 - Unknown word (İnside)

After:

sample.md:1:18 - Unknown word (Ispanakk)
sample.md:1:27 - Unknown word (İnside)
Technical Details
  • When a word isn't found as written, cspell looks up other forms of it, such as its lower-case form. These forms now follow the dictionary's locale. When case is ignored, the forms used before are also tried, so no word that passed before is reported.
  • An invalid dictionaryInformation.locale is ignored, as it is for suggestions.
  • The design is in docs/designs/dictionary-locale.md.

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Performance Report

Daily Performance
xychart-beta
    title Files Per Second by Day
    y-axis Files per Second
    x-axis Date [Sep-14, Sep-16, Sep-17, Sep-20, Sep-22, Sep-24, Sep-27, Sep-28, Sep-29, Sep-30, Oct-1, Oct-2, Oct-8, Oct-9, Oct-10, Oct-11, Oct-13]
    bar [197.87, 189.83, 198.93, 223.14, 203.41, 191.85, 190.34, 190.33, 191.42, 191.65, 187.17, 187.29, 194.39, 192.05, 218.83, 197.10, 195.24]
    line [97.36, 113.44, 95.42, 93.37, 113.84, 158.94, 91.50, 106.48, 102.03, 106.46, 94.98, 113.77, 93.63, 125.18, 87.00, 104.77, 109.42]
    line [156.67, 149.67, 167.24, 171.44, 166.11, 165.94, 180.17, 169.69, 179.61, 173.13, 150.88, 153.50, 149.45, 170.98, 162.38, 193.61, 167.04]
    line [159.91, 274.11, 160.48, 154.49, 133.29, 206.55, 172.23, 156.59, 180.95, 179.76, 145.22, 129.53, 157.39, 199.58, 152.82, 170.97, 185.75]
    line [79.87, 74.03, 79.32, 76.57, 77.71, 78.68, 74.59, 96.62, 94.86, 81.46, 69.18, 73.06, 66.65, 96.25, 112.51, 78.91, 82.77]
    line [151.50, 140.12, 185.15, 139.87, 144.59, 151.47, 163.76, 164.48, 145.07, 153.00, 154.07, 155.61, 136.07, 148.26, 141.19, 185.69, 154.55]
    line [61.82, 49.92, 50.20, 50.36, 50.54, 47.43, 56.40, 49.96, 64.67, 50.46, 44.40, 48.96, 71.61, 56.00, 55.29, 59.99, 68.80]
    line [47.78, 46.42, 45.99, 42.51, 50.42, 46.36, 61.34, 51.99, 46.51, 53.11, 48.59, 73.40, 59.94, 62.62, 55.56, 54.77, 45.21]
    line [96.78, 160.57, 101.71, 98.32, 105.51, 103.82, 101.18, 119.72, 101.30, 101.24, 103.40, 125.70, 125.48, 99.76, 158.05, 114.31, 137.32]
    line [118.61, 125.51, 156.41, 126.36, 117.29, 122.97, 147.55, 130.31, 120.84, 131.56, 115.38, 110.82, 116.53, 214.42, 116.00, 118.77, 144.83]
    line [77.91, 142.49, 79.52, 110.64, 76.31, 85.79, 97.01, 82.92, 84.16, 84.72, 77.34, 87.34, 75.86, 81.29, 136.91, 94.03, 101.02]
    line [23.74, 22.20, 23.03, 24.38, 22.79, 25.90, 22.55, 24.52, 26.32, 24.36, 24.04, 25.09, 23.35, 22.45, 21.51, 25.71, 29.42]
    line [213.84, 211.89, 203.30, 203.26, 249.81, 370.77, 255.08, 280.21, 227.10, 239.56, 208.40, 216.14, 204.22, 251.15, 211.26, 222.05, 242.35]
    line [226.41, 183.84, 178.08, 240.62, 182.34, 183.11, 178.48, 227.71, 175.37, 193.07, 180.70, 197.68, 174.97, 189.16, 226.87, 200.18, 179.39]
    line [6.69, 7.98, 6.67, 6.83, 6.48, 7.18, 7.27, 6.94, 7.83, 6.98, 6.40, 6.43, 8.18, 6.76, 7.44, 7.30, 6.32]
    line [197.07, 148.01, 150.26, 150.22, 155.16, 146.16, 150.57, 146.25, 172.87, 161.95, 149.25, 258.77, 151.43, 150.43, 254.02, 168.57, 231.71]
    line [318.90, 363.44, 349.72, 406.48, 449.44, 342.12, 376.67, 347.31, 443.48, 368.45, 332.70, 302.48, 422.03, 338.21, 306.48, 376.46, 318.53]
    line [214.17, 355.08, 286.90, 193.09, 220.97, 216.09, 223.67, 208.59, 258.02, 244.00, 208.42, 273.15, 264.14, 216.71, 266.75, 228.80, 223.08]
    line [265.83, 272.53, 247.23, 246.03, 470.19, 256.56, 257.27, 291.74, 296.65, 268.66, 245.94, 244.92, 242.23, 245.65, 270.12, 330.98, 278.79]
    line [18.79, 24.79, 24.63, 19.73, 20.13, 19.16, 18.74, 19.48, 22.38, 21.10, 27.10, 18.00, 23.58, 17.31, 20.37, 21.44, 22.38]
    line [247.49, 246.97, 251.50, 236.84, 249.23, 243.91, 273.74, 252.33, 270.33, 282.14, 249.68, 432.83, 249.77, 263.65, 247.10, 235.41, 323.97]
    line [17.04, 25.59, 14.10, 13.68, 15.06, 15.07, 17.30, 20.40, 18.84, 16.01, 18.80, 15.62, 18.14, 15.49, 15.23, 15.94, 13.89]
    line [381.43, 392.33, 359.21, 375.60, 366.33, 321.23, 484.87, 422.08, 444.64, 410.96, 351.78, 368.84, 361.47, 370.09, 351.86, 414.54, 417.07]
    line [20.76, 21.20, 21.42, 29.89, 21.10, 33.29, 22.21, 22.99, 25.81, 22.79, 21.40, 20.78, 24.57, 21.27, 19.07, 21.50, 21.24]
    line [23.63, 25.87, 21.39, 25.97, 25.29, 24.28, 26.03, 27.14, 29.89, 26.22, 25.83, 25.33, 31.76, 42.94, 27.61, 25.97, 34.21]
    line [82.90, 86.51, 81.41, 84.89, 78.73, 86.02, 82.17, 86.87, 92.07, 92.00, 84.24, 92.67, 106.68, 84.76, 82.82, 101.29, 118.90]
    line [276.88, 185.15, 203.08, 216.06, 205.09, 247.61, 251.50, 220.80, 227.59, 212.73, 213.55, 197.04, 208.25, 194.51, 251.63, 210.60, 231.31]
    line [44.11, 74.38, 48.80, 46.22, 56.03, 61.86, 55.07, 50.38, 50.26, 50.11, 43.90, 42.10, 56.81, 48.66, 45.19, 43.33, 48.66]
    line [63.80, 67.85, 68.28, 64.95, 121.18, 70.33, 81.37, 68.55, 70.46, 78.07, 69.43, 66.84, 65.37, 64.09, 65.74, 75.83, 77.12]
    line [130.94, 82.16, 79.40, 98.84, 72.96, 83.85, 90.86, 105.55, 94.80, 87.05, 82.35, 80.71, 82.95, 74.90, 76.80, 94.05, 96.82]
    line [179.89, 238.35, 171.61, 172.61, 177.91, 241.32, 177.39, 178.05, 221.01, 182.74, 163.48, 169.32, 168.97, 278.92, 166.54, 166.53, 170.79]
    line [127.77, 210.87, 148.03, 126.65, 140.55, 188.49, 125.20, 157.87, 127.91, 135.21, 124.24, 125.20, 125.79, 225.70, 154.24, 126.07, 127.29]
    line [126.89, 119.89, 121.04, 127.46, 154.00, 162.49, 123.69, 144.71, 125.72, 134.25, 127.46, 121.17, 173.95, 124.58, 216.72, 133.97, 123.87]
    line [119.42, 176.53, 123.45, 123.33, 163.66, 174.86, 123.76, 140.60, 149.87, 128.75, 160.37, 148.80, 127.97, 206.50, 122.84, 138.06, 149.67]
    line [204.55, 207.72, 211.00, 215.66, 277.45, 216.60, 208.75, 228.82, 225.46, 221.92, 198.17, 351.24, 197.76, 198.13, 208.30, 202.68, 201.79]
    line [277.45, 226.45, 225.10, 268.40, 226.40, 290.41, 225.84, 287.60, 216.33, 247.70, 277.53, 288.63, 233.16, 374.71, 397.16, 261.34, 217.24]
    line [191.12, 144.91, 193.30, 142.56, 168.42, 145.10, 149.37, 134.63, 171.73, 154.69, 140.49, 131.94, 134.65, 137.28, 142.04, 172.94, 162.65]
    line [262.40, 339.51, 263.75, 234.66, 253.01, 268.39, 293.97, 280.40, 292.26, 260.88, 404.51, 328.53, 305.64, 243.36, 444.70, 255.37, 254.42]
    line [531.12, 384.37, 384.60, 745.85, 398.12, 385.90, 416.89, 405.74, 428.96, 399.50, 398.65, 384.43, 625.58, 373.38, 382.28, 469.75, 409.07]
    line [281.57, 222.43, 291.44, 219.17, 221.75, 221.55, 237.73, 242.39, 246.40, 245.33, 214.25, 212.38, 215.08, 238.25, 274.47, 219.66, 252.51]
    line [303.17, 236.15, 234.71, 233.17, 234.84, 298.34, 266.72, 232.18, 229.70, 240.06, 392.72, 229.48, 222.78, 224.66, 204.36, 254.42, 277.26]
    line [177.63, 183.43, 188.58, 244.43, 196.97, 192.51, 179.82, 187.80, 186.23, 183.20, 182.62, 177.99, 183.70, 179.89, 233.14, 207.50, 218.41]
    line [56.65, 66.08, 70.58, 54.86, 55.17, 51.26, 53.54, 77.09, 47.84, 59.17, 54.01, 70.63, 55.18, 49.90, 84.72, 57.64, 57.38]
    line [101.98, 98.46, 103.01, 98.38, 99.03, 101.47, 103.27, 100.93, 105.22, 117.10, 120.39, 97.23, 97.90, 123.96, 100.36, 115.55, 122.73]
    line [243.92, 325.88, 260.22, 243.99, 243.96, 239.11, 261.23, 266.19, 247.38, 252.69, 432.16, 234.56, 233.40, 238.56, 234.64, 256.33, 219.99]
    line [93.89, 113.70, 92.25, 94.28, 98.57, 98.01, 93.82, 94.62, 89.71, 106.79, 118.50, 123.61, 91.76, 95.32, 93.61, 112.00, 123.43]
    line [317.36, 187.32, 321.78, 198.42, 179.83, 171.82, 219.08, 181.95, 180.26, 215.27, 175.03, 168.70, 269.72, 161.18, 172.81, 172.65, 208.47]
    line [33.93, 34.79, 33.36, 33.83, 35.26, 55.80, 33.99, 34.03, 41.23, 40.49, 30.44, 33.53, 33.57, 32.29, 33.27, 34.79, 37.33]
    line [248.77, 196.63, 194.10, 246.18, 197.54, 195.96, 190.07, 228.82, 222.46, 205.73, 192.21, 184.58, 245.51, 246.82, 245.36, 219.50, 226.50]
    line [211.67, 318.15, 234.86, 348.02, 254.54, 210.42, 205.10, 287.53, 207.85, 231.21, 200.22, 207.10, 331.74, 203.63, 192.81, 213.97, 213.28]
    line [171.09, 160.76, 222.99, 297.37, 220.86, 165.88, 186.63, 165.05, 169.83, 183.91, 159.55, 166.58, 162.12, 169.35, 265.31, 194.05, 178.95]
Loading
Time to Process Files
Repository Elapsed Min/Avg/Max SD SD Graph
AdaDoom3/AdaDoom3 3.23 1.7 / 2.9 / 3.4 0.46 ┣━━┻━━╋━●┻━━┫
alexiosc/megistos 4.20 3.9 / 6.7 / 8.1 1.05 ●┣━━┻━━╋━━┻━━┫
apollographql/apollo-server 2.14 1.4 / 2.4 / 3.1 0.38 ┣━━┻●━╋━━┻━━┫
aspnetboilerplate/aspnetboilerplate 6.86 4.9 / 8.4 / 9.8 1.33 ┣━●┻━━╋━━┻━━┫
aws-amplify/docs 14.15 7.4 / 12.4 / 14.6 2.15 ┣━━┻━━╋━━●━━┫
Azure/azure-rest-api-specs 11.69 6.0 / 10.3 / 12.2 1.31 ┣━━┻━━╋━━●━━┫
bitjson/typescript-starter 0.89 0.7 / 1.0 / 1.2 0.14 ┣━┻●━╋━━┻━┫
caddyserver/caddy 2.42 2.2 / 3.5 / 4.5 0.56 ●━━┻━━╋━━┻━━┫
canada-ca/open-source-logiciel-libre 0.99 0.7 / 1.0 / 1.2 0.13 ┣━┻━━●━━┻━┫
chef/chef 4.41 3.7 / 4.8 / 5.6 0.51 ┣━━┻●━╋━━┻━━┫
dart-lang/sdk 63.27 38.8 / 55.6 / 65.4 7.28 ┣━━━┻━━━╋━━━●━━━┫
django/django 14.38 8.4 / 13.6 / 15.3 1.58 ┣━━┻━━╋●━┻━━┫
eslint/eslint 10.62 5.5 / 9.3 / 11.5 1.53 ┣━━┻━━╋━━●━━┫
exonum/exonum 2.58 2.0 / 3.3 / 3.8 0.44 ┣●━┻━━╋━━┻━━┫
flutter/samples 10.84 7.2 / 11.2 / 14.9 1.77 ┣━━┻━●╋━━┻━━┫
gitbucket/gitbucket 3.50 1.9 / 3.1 / 3.8 0.47 ┣━━┻━━╋━●┻━━┫
googleapis/google-cloud-cpp 128.56 74.1 / 121.9 / 144.1 18.59 ┣━━━┻━━━╋━●━┻━━━┫
graphql/express-graphql 1.20 0.7 / 1.1 / 1.3 0.14 ┣━┻━━╋━●┻━┫
graphql/graphql-js 2.33 2.1 / 3.4 / 3.9 0.50 ●━━┻━━╋━━┻━━┫
graphql/graphql-relay-js 0.99 0.7 / 1.1 / 1.3 0.16 ┣━┻━●╋━━┻━┫
graphql/graphql-spec 1.37 0.7 / 1.2 / 1.4 0.19 ┣━┻━━╋━━●━┫
iluwatar/java-design-patterns 13.46 8.0 / 12.4 / 14.4 1.64 ┣━━┻━━╋━●┻━━┫
ktaranov/sqlserver-kit 5.94 3.4 / 5.6 / 6.5 0.88 ┣━━┻━━╋●━┻━━┫
liriliri/licia 3.31 2.4 / 3.6 / 4.5 0.57 ┣━━┻●━╋━━┻━━┫
MartinThoma/LaTeX-examples 6.63 4.3 / 6.0 / 7.0 0.76 ┣━━┻━━╋━●┻━━┫
mdx-js/mdx 1.44 1.0 / 1.7 / 2.1 0.25 ┣━●━━╋━━┻━┫
microsoft/TypeScript-Website 5.27 3.1 / 4.9 / 6.3 0.68 ┣━━┻━━╋●━┻━━┫
MicrosoftDocs/PowerShell-Docs 25.17 14.4 / 23.6 / 29.6 3.25 ┣━━━┻━━╋━●┻━━━┫
neovim/nvim-lspconfig 6.08 3.1 / 5.2 / 6.6 0.78 ┣━━┻━━╋━━●━━┫
pagekit/pagekit 3.91 1.9 / 3.2 / 4.0 0.54 ┣━━┻━━╋━━┻●━┫
php/php-src 19.06 15.3 / 23.7 / 29.3 3.32 ┣━●━┻━━╋━━┻━━━┫
plasticrake/tplink-smarthome-api 1.25 0.7 / 1.2 / 1.5 0.19 ┣━┻━━╋●━┻━┫
prettier/prettier 8.54 4.4 / 7.6 / 9.0 1.13 ┣━━┻━━╋━●┻━━┫
pycontribs/jira 1.10 0.8 / 1.4 / 1.8 0.23 ┣━●━━╋━━┻━┫
RustPython/RustPython 8.27 6.5 / 10.8 / 12.4 1.44 ┣●━┻━━╋━━┻━━┫
shoelace-style/shoelace 2.51 1.6 / 2.6 / 3.4 0.46 ┣━━┻━●╋━━┻━━┫
slint-ui/slint 11.71 11.0 / 17.9 / 21.6 2.55 ●┣━━━┻━━╋━━┻━━━┫
SoftwareBrothers/admin-bro 2.54 1.6 / 2.3 / 2.9 0.31 ┣━┻━━╋━●┻━┫
sveltejs/svelte 24.27 12.2 / 21.8 / 24.6 3.19 ┣━━━┻━━╋━━●━━━┫
TheAlgorithms/Python 7.00 3.8 / 6.1 / 7.3 0.86 ┣━━┻━━╋━━●━━┫
twbs/bootstrap 1.70 1.0 / 1.7 / 2.3 0.28 ┣━┻━━●━━┻━┫
typescript-cheatsheets/react 1.30 0.7 / 1.1 / 1.3 0.16 ┣━┻━━╋━━●━┫
typescript-eslint/typescript-eslint 4.77 2.4 / 3.8 / 4.7 0.64 ┣━━┻━━╋━━┻●━┫
vitest-dev/vitest 13.14 6.4 / 10.4 / 12.3 1.46 ┣━━┻━━╋━━┻━━●
w3c/aria-practices 3.47 2.0 / 3.1 / 3.6 0.46 ┣━━┻━━╋━●┻━━┫
w3c/specberus 1.28 1.2 / 1.8 / 2.2 0.27 ●━┻━━╋━━┻━┫
webdeveric/webpack-assets-manifest 1.18 0.7 / 1.1 / 1.4 0.15 ┣━┻━━╋●━┻━┫
webpack/webpack 5.64 4.4 / 7.7 / 9.7 1.40 ┣━●┻━━╋━━┻━━┫
wireapp/wire-desktop 1.67 0.9 / 1.3 / 1.6 0.19 ┣━┻━━╋━━┻━●
wireapp/wire-webapp 15.28 9.1 / 14.2 / 16.4 1.64 ┣━━┻━━╋━●┻━━┫

Note:

  • Elapsed time is in seconds.
Files per Second over Time
Repository Files Sec Fps Rel Trend Fps N
AdaDoom3/AdaDoom3 103 3.23 31.88 -14.75% ▆▂▂██▂▁▂▂▂▂▄▂▂▂▂▂▂▅▂ 41
alexiosc/megistos 583 4.20 138.95 55.36% ▂▁▂▃▂▅▂▂▂▂▂▆▂▇▂▂▂▂▁█ 41
apollographql/apollo-server 256 2.14 119.85 8.37% ▃▂▃▂▆▄▄▂▂▄▂▂▂▂▂▅█▂▆▄ 41
aspnetboilerplate/aspnetboilerplate 2300 6.86 335.46 19.36% ▁▅▂▂▂▂▂▂▂▂▂▅█▂▃▂▇▂▂▅ 41
aws-amplify/docs 3039 14.15 214.82 -16.18% ▃▂▂▄▂▂▄▄▂▇█▂▂▆▂▆▁▁▂▁ 40
Azure/azure-rest-api-specs 2601 11.69 222.51 -13.24% ▂▂▂▁▂▁█▂▂▂▂▂▂▄▂▂▄▁▁▁ 41
bitjson/typescript-starter 20 0.89 22.57 7.22% ▃▅▅▃▃▃▇▂▅▂▄▂▆▂▅▂█▅▅▅ 41
caddyserver/caddy 382 2.42 158.18 51.89% ▂▃▄▄▂▅▂▄▂▅▂▂▃▂▂█▁▁▁█ 41
canada-ca/open-source-logiciel-libre 7 0.99 7.04 -0.36% ▅▃▃▃▃▃▃▃▅▃▄▂▂█▆▂▄▂▁▄ 41
chef/chef 1037 4.41 235.04 7.24% ▆▄▄▃▄▄▅▃▄▃█▄▄▃▇▃▄▄█▆ 41
dart-lang/sdk 11769 63.27 186.01 -13.36% ▂▆▅▂▂▄▂▂▅▅▅▂▅▂█▂▂▅▅▂ 41
django/django 2935 14.38 204.13 -6.78% ▂▄▂▂▂▂▂█▂▂▂▂▂▂▂▂▂▂▁▂ 41
eslint/eslint 2087 10.62 196.43 -15.65% ▃▂▁▂▂▂▂▂█▂▂▂▂▂▅▂▂▂▄▂ 41
exonum/exonum 421 2.58 163.03 25.39% ▂▂▇▂▂▂▂▁▂█▂▂▂▂▂▁▂▂▄▅ 41
flutter/samples 1703 10.84 157.15 0.39% ▂▅▅▅▃▃▃▂▂▂▃▅█▅▃▃▃▃▅▄ 41
gitbucket/gitbucket 427 3.50 121.97 -12.34% ▂▄▂▁▂▂▂▂▂█▄▂▁▄▂▂▂▃▂▂ 41
googleapis/google-cloud-cpp 22068 128.56 171.65 -7.97% ▄▂▁▂█▂▂▂▂▂▇▇▄▂▂▂▂▂▄▂ 41
graphql/express-graphql 26 1.20 21.61 -12.83% ▂▃▂▃▁▃▃▃▃▂▂▂█▄▅▁▂▆█▂ 41
graphql/graphql-js 551 2.33 236.39 40.56% ▂▂▁▂▄▂▂█▂▂█▂▄▁▆▂▁█▄▇ 41
graphql/graphql-relay-js 28 0.99 28.23 3.33% ▃▂▂▃▂▂▃▂▅█▃▁▂▂▆▂▃▇▆▃ 41
graphql/graphql-spec 19 1.37 13.84 -17.19% ▃▂▃▆▂▂▅▃▅▃▃▂▂█▄▃▁▁▂▂ 41
iluwatar/java-design-patterns 2239 13.46 166.40 -9.98% ▂▅▅▂▂▂▂▂▂█▂▂▂▂▂▂▃▂▃▂ 41
ktaranov/sqlserver-kit 490 5.94 82.53 -8.79% ▁▂▂▂▂▂▂▃▁▂█▂▂▂▅▇▂█▂▂ 41
liriliri/licia 1442 3.31 435.19 6.84% ▃▂▁█▆█▂▂▂▂▂▂▁▅▄▂▆▂▅▄ 41
MartinThoma/LaTeX-examples 1414 6.63 213.38 -11.12% ▂▂▆▅▆▆▂▂▂▃▅▂▅▂▂▂▂█▂▂ 41
mdx-js/mdx 139 1.44 96.70 17.78% ▃▃▇▃▃▂▂▂▁▆█▄▂▁▂▇▂▃▃▆ 41
microsoft/TypeScript-Website 765 5.27 145.04 -8.36% ▄▅▂▃▂▂▃▃▂▃▂█▇▁▄▆▂▂▅▂ 41
MicrosoftDocs/PowerShell-Docs 3127 25.17 124.21 -8.31% ▂▄▃▄▃▂▃▂▅▂█▄▂▂▂▃▄▃▂▂ 41
neovim/nvim-lspconfig 883 6.08 145.19 -16.40% ▃▂▂▂▃▂▂▂▂▃▃▆▄▂▂█▂▁▆▂ 41
pagekit/pagekit 741 3.91 189.69 -20.72% ▂▅▆▃▃▂▃▆▅▃▅█▂▂▁▃▅▃▅▂ 41
php/php-src 2392 19.06 125.53 21.01% █▃▃▂▃▃▅▅▂▃▂▃█▂▃▅▅▂█▅ 41
plasticrake/tplink-smarthome-api 62 1.25 49.69 -5.86% ▂▃▇▂▂▆▃█▅▆▄▇▂▂▂▆▅▁▂▃ 41
prettier/prettier 2744 8.54 321.40 -12.83% ▃▂▄▂▅▂▂▁▄▂▁▂█▂▁▄▂▂▂▂ 41
pycontribs/jira 80 1.10 73.02 23.79% █▅▃▆▃▆▃▆▃▂█▂▂▂▂▅▇▂▂▆ 41
RustPython/RustPython 989 8.27 119.63 29.91% ▄▂▂▁▂▂▂▃▄▂▂▄▄▂▆▃▂▂█▅ 41
shoelace-style/shoelace 440 2.51 175.26 0.54% ▄▅▂▃▃▆▂▁▃▅▃▂▅▂▂█▂▅▄▄ 41
slint-ui/slint 4596 11.71 392.59 59.58% ▂▂▂▂▆▂█▂▂▂▁▂▂▆▄▂▂▂▂█ 41
SoftwareBrothers/admin-bro 441 2.54 173.76 -10.77% ▆▂▅▃▃▃▃▄▃▃▆▃▄█▂▅▃▅▁▃ 41
sveltejs/svelte 9137 24.27 376.42 -12.37% ▁▁▄▂▂▂▂▂▇▁▂▄▁▁▄▁█▁▄▁ 41
TheAlgorithms/Python 1638 7.00 233.92 -13.80% ▄▅▁▂▂▂▂█▂▃▂▁▂▂▂▂▁▄█▂ 41
twbs/bootstrap 152 1.70 89.22 19.50% ▆▂▅▄█▁▃▂▂▂▂▃▄▇▂▂▂▂▃▅ 41
typescript-cheatsheets/react 24 1.30 18.52 -19.08% ▃▃▇▂▃▂▃▃▅▃▂▂▃▂▃█▄▂▆▂ 41
typescript-eslint/typescript-eslint 884 4.77 185.16 -22.69% ▂▃▅▄▂▂▂▂▂▄▂▂▂▃▅▂▃▁█▁ 41
vitest-dev/vitest 2862 13.14 217.77 -21.80% ▂▂▂▂▂▂▇▄▄▂█▂▁▂▂▁▄▂▄▁ 41
w3c/aria-practices 417 3.47 120.34 -13.76% ▂▅▂▂▂▂▅▄▂█▂▂▂▇▁▂▄▄▆▂ 41
w3c/specberus 190 1.28 148.99 35.43% ▄▃▁▅▂▂▃▅▅▃█▂▇▃▇▂▂▃█▇ 41
webdeveric/webpack-assets-manifest 55 1.18 46.74 -6.32% ▃█▃▂▃▂▂▂▅▃▂▂▂▂▁▁▂▁▅▃ 40
webpack/webpack 1501 5.64 266.15 32.08% █▃▅▃▂▃▂▂█▂▂▂▄▁▂▂▂▄▂▇ 41
wireapp/wire-desktop 84 1.67 50.18 -9.44% ▂▂▂▂▂▅▁▂▆▃▃▇▂▂▇▃▂█▆▂ 41
wireapp/wire-webapp 2737 15.28 179.08 -7.12% ▂▃▂▃▂▂▂▂▂▂▅█▁▂▂▆▂▂█▂ 41
Data Throughput
Repository Files Sec Kps Rel Trend Kps N
AdaDoom3/AdaDoom3 103 3.23 677.46 -14.75% ▆▂▂██▂▁▂▂▂▂▄▂▂▂▂▂▂▅▂ 41
alexiosc/megistos 583 4.20 1091.80 55.36% ▂▁▂▃▂▅▂▂▂▂▂▆▂▇▂▂▂▂▁█ 41
apollographql/apollo-server 256 2.14 989.69 8.40% ▃▂▃▂▆▄▄▂▂▄▂▂▂▂▂▅█▂▆▄ 41
aspnetboilerplate/aspnetboilerplate 2300 6.86 823.93 19.64% ▁▅▂▂▂▂▂▂▂▂▂▅█▂▃▂▇▂▂▅ 41
aws-amplify/docs 3039 14.15 843.82 -16.18% ▃▂▂▄▂▂▄▄▂▇█▂▂▆▂▆▁▁▂▁ 40
Azure/azure-rest-api-specs 2601 11.69 690.87 -12.38% ▂▂▂▁▂▁█▂▂▂▂▂▂▄▂▂▃▂▁▁ 41
bitjson/typescript-starter 20 0.89 90.26 7.22% ▃▅▅▃▃▃▇▂▅▂▄▂▆▂▅▂█▅▅▅ 41
caddyserver/caddy 382 2.42 1491.91 57.80% ▂▃▄▄▁▄▂▄▂▅▂▂▃▂▂█▁▂▁█ 41
canada-ca/open-source-logiciel-libre 7 0.99 58.32 -0.36% ▅▃▃▃▃▃▃▃▅▃▄▂▂█▆▂▄▂▁▄ 41
chef/chef 1037 4.41 1155.71 7.26% ▆▄▄▃▄▄▅▃▄▃█▄▄▃▇▃▄▄█▆ 41
dart-lang/sdk 11769 63.27 1302.69 -13.30% ▂▆▅▂▂▄▂▂▅▅▅▂▅▂█▂▂▅▅▂ 41
django/django 2935 14.38 1322.80 -6.51% ▂▄▂▂▂▂▂█▂▂▂▂▂▂▂▂▂▂▁▂ 41
eslint/eslint 2087 10.62 1389.66 -15.49% ▃▂▁▂▂▂▂▂█▂▂▂▂▂▅▂▂▂▄▂ 41
exonum/exonum 421 2.58 1559.40 25.39% ▂▂▇▂▂▂▂▁▂█▂▂▂▂▂▁▂▂▄▅ 41
flutter/samples 1703 10.84 936.74 0.39% ▂▅▅▅▃▃▃▂▂▂▃▅█▅▃▃▃▃▅▄ 41
gitbucket/gitbucket 427 3.50 597.28 -12.69% ▂▄▂▁▂▂▂▂▂█▄▂▁▄▂▂▂▃▂▂ 41
googleapis/google-cloud-cpp 22068 128.56 1499.41 -7.89% ▄▂▁▂█▂▂▂▂▂▇▇▄▂▂▂▂▂▄▂ 41
graphql/express-graphql 26 1.20 98.89 -12.83% ▂▃▂▃▁▃▃▃▃▂▂▂█▄▅▁▂▆█▂ 41
graphql/graphql-js 551 2.33 1762.86 40.55% ▂▂▁▂▄▂▂█▂▂█▂▄▁▆▂▁█▄▇ 41
graphql/graphql-relay-js 28 0.99 110.90 3.33% ▃▂▂▃▂▂▃▂▅█▃▁▂▂▆▂▃▇▆▃ 41
graphql/graphql-spec 19 1.37 465.35 -17.15% ▃▂▃▆▂▂▅▃▅▃▃▂▂█▄▃▁▁▂▂ 41
iluwatar/java-design-patterns 2239 13.46 516.30 -9.94% ▂▅▅▂▂▂▂▂▂█▂▂▂▂▂▂▃▂▃▂ 41
ktaranov/sqlserver-kit 490 5.94 1250.23 -8.79% ▁▂▂▂▂▂▂▃▁▂█▂▂▂▅▇▂█▂▂ 41
liriliri/licia 1442 3.31 521.81 6.84% ▃▂▁█▆█▂▂▂▂▂▂▁▅▄▂▆▂▅▄ 41
MartinThoma/LaTeX-examples 1414 6.63 443.35 -11.02% ▂▂▆▅▆▆▂▂▂▃▅▂▅▂▂▂▂█▂▂ 41
mdx-js/mdx 139 1.44 455.68 17.78% ▃▃▇▃▃▂▂▂▁▆█▄▂▁▂▇▂▃▃▆ 41
microsoft/TypeScript-Website 765 5.27 1000.32 -8.35% ▄▅▂▃▂▂▃▃▂▃▂█▇▁▄▆▂▂▅▂ 41
MicrosoftDocs/PowerShell-Docs 3127 25.17 1327.47 -8.31% ▂▄▃▄▃▂▃▂▅▂█▄▂▂▂▃▄▃▂▂ 41
neovim/nvim-lspconfig 883 6.08 459.08 -11.85% ▂▂▂▂▂▂▂▂▂▃▃▆▄▂▂█▂▁▆▂ 41
pagekit/pagekit 741 3.91 395.51 -20.72% ▂▅▆▃▃▂▃▆▅▃▅█▂▂▁▃▅▃▅▂ 41
php/php-src 2392 19.06 2233.24 21.32% █▃▃▂▃▂▅▅▂▃▂▃█▂▃▅▅▂█▅ 41
plasticrake/tplink-smarthome-api 62 1.25 268.49 -5.86% ▂▃▇▂▂▆▃█▅▆▄▇▂▂▂▆▅▁▂▃ 41
prettier/prettier 2744 8.54 450.95 -13.14% ▃▂▄▂▅▂▂▁▄▂▁▂█▂▁▄▂▂▂▂ 41
pycontribs/jira 80 1.10 515.74 23.79% █▅▃▆▃▆▃▆▃▂█▂▂▂▂▅▇▂▂▆ 41
RustPython/RustPython 989 8.27 3544.49 36.49% ▄▃▃▂▂▂▂▃▄▃▂▄▄▂▇▃▃▂█▅ 41
shoelace-style/shoelace 440 2.51 846.43 0.54% ▄▅▂▃▃▆▂▁▃▅▃▂▅▂▂█▂▅▄▄ 41
slint-ui/slint 4596 11.71 2281.92 60.48% ▂▂▂▂▆▂█▂▂▂▁▂▂▆▄▂▂▂▂█ 41
SoftwareBrothers/admin-bro 441 2.54 382.98 -10.77% ▆▂▅▃▃▃▃▄▃▃▆▃▄█▂▅▃▅▁▃ 41
sveltejs/svelte 9137 24.27 259.99 -12.42% ▁▂▄▂▂▂▂▂▇▁▂▄▁▁▄▁█▁▄▁ 41
TheAlgorithms/Python 1638 7.00 669.62 -12.74% ▄▅▁▂▂▂▂█▂▃▂▁▂▂▂▂▁▄█▂ 41
twbs/bootstrap 152 1.70 750.71 22.31% ▆▂▅▄█▁▃▂▂▂▂▃▄▇▂▂▂▂▄▅ 41
typescript-cheatsheets/react 24 1.30 167.44 -19.08% ▃▃▇▂▃▂▃▃▅▃▂▂▃▂▃█▄▂▆▂ 41
typescript-eslint/typescript-eslint 884 4.77 630.24 -22.20% ▂▃▅▄▂▂▂▂▂▄▂▂▂▃▅▂▃▁█▁ 41
vitest-dev/vitest 2862 13.14 648.37 -20.54% ▂▁▂▂▂▂▇▄▄▂█▂▂▂▂▁▄▂▄▁ 41
w3c/aria-practices 417 3.47 1132.94 -13.70% ▂▅▂▂▂▂▅▄▂█▂▂▂▇▁▂▄▄▆▂ 41
w3c/specberus 190 1.28 487.76 35.43% ▄▃▁▅▂▂▃▅▅▃█▂▇▃▇▂▂▃█▇ 41
webdeveric/webpack-assets-manifest 55 1.18 107.92 -6.32% ▃█▃▂▃▂▂▂▅▃▂▂▂▂▁▁▂▁▅▃ 40
webpack/webpack 1501 5.64 2328.14 49.39% ▇▂▄▂▂▂▂▁█▂▂▂▄▁▂▂▂▄▂█ 41
wireapp/wire-desktop 84 1.67 219.81 -4.58% ▂▂▂▂▂▄▁▂▅▃▃▇▂▂▇▃▂█▆▃ 41
wireapp/wire-webapp 2737 15.28 824.08 -5.15% ▂▃▂▃▂▂▂▂▂▂▅█▂▂▂▆▂▂█▂ 41

@Jason3S Jason3S changed the title docs: Design for looking up words with the dictionary's locale fix: Find words that need their language's case rules, such as Turkish İ and I Oct 13, 2026
@Jason3S Jason3S added fix and removed Documentation labels Oct 13, 2026
@Jason3S
Jason3S marked this pull request as ready for review October 13, 2026 10:49
@Jason3S
Jason3S requested a balanced review from Copilot October 13, 2026 10:49
@Jason3S Jason3S changed the title fix: Find words that need their language's case rules, such as Turkish İ and I fix: Search dictionaries using the dictionary's locale case rules, such as Turkish İ and I Oct 13, 2026
@Jason3S Jason3S changed the title fix: Search dictionaries using the dictionary's locale case rules, such as Turkish İ and I fix: Search dictionaries using the dictionary's locale case rules, to support Turkish İ and I Oct 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

It changes the core case-folding word-lookup algorithm used by every dictionary and alters case-sensitive matching behavior, so a maintainer should give final sign-off despite the thorough tests.

0 open findings

What changed in this PR

This PR fixes issue #6282, where Turkish words such as İnceleme and Ispanak were incorrectly reported as misspellings because cspell applied the default (locale-agnostic) case rules when looking up alternate word forms. The fix lets a dictionary declare its own locale (via the existing dictionaryInformation.locale), and that locale's rules (toLocaleLowerCase) are used when generating the case-folded forms to search, so valid words in the Turkish/Azerbaijani/Lithuanian dictionaries are found while rules from one language never leak into another's dictionary. This touches the core word-lookup path in cspell-dictionary and the dictionary-loading/locale-normalization paths in cspell-lib.

Changes:

  • Rewrote wordSearchForms → wordSearchAlternateForms, threading a locale through so case changes follow the dictionary's locale, and added a lcRest helper (lower-case all but the first letter, preserving accents).
  • Added a locale option to SpellingDictionaryOptions/SpellingDictionaryFromTrie, wired from dictionaryInformation.locale in DictionaryLoader, with a shared normalizeLocaleForIntl moved out of suggestions.ts into LanguageSettings.ts.
  • Added a design doc, updated the DictionaryInformation doc comments, regenerated schema/API files, and added extensive tests plus a Turkish sample word list.
File Description
packages/​cspell-dictionary/​src/​SpellingDictionary/​SpellingDictionaryMethods.ts Core rewrite: wordSearchAlternateForms with locale-aware forms; legacy path preserved for case-insensitive dicts.
packages/​cspell-dictionary/​src/​SpellingDictionary/​SpellingDictionaryFromTrie.ts Stores #locale, passes it to form generation, adds explicit mWord compound lookup to compensate for word no longer in forms.
packages/​cspell-dictionary/​src/​SpellingDictionary/​SpellingDictionary.ts Adds locale? to SpellingDictionaryOptions.
packages/​cspell-dictionary/​src/​util/​text.ts New lcRest helper.
packages/​cspell-lib/​src/​lib/​SpellingDictionary/​DictionaryController/​DictionaryLoader.ts toSpellingDictionaryOptions normalizes the dictionary locale and preserves the weightMap getter.
packages/​cspell-lib/​src/​lib/​Settings/​LanguageSettings.ts Adds shared normalizeLocaleForIntl.
packages/​cspell-lib/​src/​lib/​suggestions.ts Replaces local adjustLocale with normalizeLocaleForIntl.
packages/​cspell-types/​src/​DictionaryInformation.ts Updated locale/interface doc comments.
packages/​cspell-types/​cspell.schema.json, cspell.schema.json, packages/​cspell-types/​api/​index.d.mts Regenerated to match the type source (verified in sync).
docs/​designs/​dictionary-locale.md, docs/​designs/​README.md New design doc and index entry.
*.test.ts, packages/​cspell-lib/​samples/​turkish-words.txt New/updated tests (incl. JS-assumption tests) and Turkish sample data.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Turkish letter I, İ not working correcly

2 participants