Skip to content

Commit 90e059f

Browse files
committed
chore: refactor _lexicons.py
1 parent 2637517 commit 90e059f

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
"""
2-
Canonical English function word lexicon.
2+
Internal lexicons used by stylometric metrics.
33
4-
Source: NLTK cf. https://gist.github.com/sebleier/554280
5-
6-
Notes:
7-
- Lowercase only
4+
This package contains private lexicon data that are not part of the public API.
85
"""
96

107
from __future__ import annotations
118

9+
# Canonical English function word lexicon (lowercase only)
10+
# Source: NLTK cf. https://gist.github.com/sebleier/554280
1211
FUNCTION_WORDS: frozenset[str] = frozenset(
1312
{
1413
"i",

src/voice/stylometry/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from dataclasses import dataclass
3131

3232
from voice.stylometry._defaults import PARAMETER_DEFAULTS
33-
from voice.stylometry._function_words import FUNCTION_WORDS
33+
from voice.stylometry._lexicons import FUNCTION_WORDS
3434
from voice.stylometry._sequence_stats import (
3535
length_central_moment_from_units,
3636
mattr_from_units,

0 commit comments

Comments
 (0)