단어 및 문자 카운터
텍스트의 단어, 문자, 문장, 단락 수 카운트.
0
단어
0
문자
0
문자 (공백 제외)
0
문장
0
단락
1
줄
약 1분
읽기 시간
단어 수 계산기는 텍스트를 분석하여 단어 수, 문자 수(공백 포함/제외), 문장 수, 단락 수를 즉시 보고합니다. 트윗 초안, 대학 입학 에세이, 학술지 제출 단어 제한, 글자 수 제한이 있는 광고 카피 작성 등 특정 길이 제약 내에서 작업하는 모든 사람에게 필수적인 글쓰기 도구입니다.
텍스트를 입력 영역에 붙여넣거나 입력하면 작성하는 동안 카운트가 실시간으로 업데이트됩니다. 도구는 성인 평균 독서 속도인 분당 200-250단어를 기준으로 읽기 시간도 추정합니다.
단어와 문자 수는 계산 방법에 따라 약간 다를 수 있습니다. 이 도구는 워드 프로세서에서 가장 일반적으로 사용하는 방식을 따릅니다: 연속된 공백 아닌 문자들이 하나의 단어를 구성하며, 공백이 단어를 구분합니다.
자주 묻는 질문
코드 구현
def count_text(text: str) -> dict:
words = text.split()
chars_with_spaces = len(text)
chars_no_spaces = len(text.replace(" ", "").replace("\n", "").replace("\t", ""))
sentences = len([s for s in text.replace("!", ".").replace("?", ".").split(".") if s.strip()])
paragraphs = len([p for p in text.split("\n\n") if p.strip()])
reading_time_min = round(len(words) / 225, 1) # ~225 wpm average
return {
"words": len(words),
"chars_with_spaces": chars_with_spaces,
"chars_no_spaces": chars_no_spaces,
"sentences": sentences,
"paragraphs": paragraphs,
"reading_time_min": reading_time_min,
}
text = """Hello world. This is a sample paragraph.
This is the second paragraph with more words and sentences!"""
stats = count_text(text)
for key, value in stats.items():
print(f"{key}: {value}")Comments & Feedback
Comments are powered by Giscus. Sign in with GitHub to leave a comment.