|
|
@@ -16,6 +16,7 @@ import unicodedata |
|
|
|
from datetime import datetime, timedelta |
|
|
|
from typing import Any, TypedDict, cast |
|
|
|
|
|
|
|
import jaconv |
|
|
|
import requests |
|
|
|
from eloquent import DatabaseManager, Model |
|
|
|
|
|
|
@@ -256,7 +257,7 @@ class CommentResult (TypedDict): |
|
|
|
def normalise ( |
|
|
|
s: str, |
|
|
|
) -> str: |
|
|
|
return unicodedata.normalize ('NFKC', s).lower () |
|
|
|
return jaconv.hira2kata (unicodedata.normalize ('NFKC', s)).lower () |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|