feat: added article

This commit is contained in:
Nick 2024-12-16 04:19:13 -06:00
parent cf9caa1a66
commit a751136971
7 changed files with 198 additions and 25 deletions

View file

@ -19,3 +19,10 @@ formatSocial name =
|> String.replace "https://www.threads.net/@" "@"
|> String.replace "https://bsky.app/profile/" "@"
|> String.replace "https://www.instagram.com/" "@"
wordCount : String -> Int
wordCount text =
text
|> String.words
|> List.length