Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Catalyst/src/Models/Special/AbbreviationCapturer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int CountUpper(ReadOnlySpan<char> sp)
var pooledTokens = span.ToTokenSpanPolled(out var actualLength);
var tokens = pooledTokens.AsSpan(0, actualLength);

int N = tokens.Length - 3;
int N = tokens.Length - 2;

for (int i = 1; i < N; i++)
{
Expand Down
1 change: 1 addition & 0 deletions tests/Catalyst.Tests/PipelineTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public async Task HtmlNormalizer(string text)

[Theory]
[InlineData("this is an abbreviation test As Soon As Possible (ASAP) I hope this abbreviation was found")]
[InlineData("this is an abbreviation test As Soon As Possible (ASAP)")]
public async Task Abbreviations(string text)
{
English.Register();
Expand Down