Last active
June 13, 2022 10:47
-
-
Save greymd/a1a393a18d672e5c1059a0278cf1e26d to your computer and use it in GitHub Desktop.
ポリバケツ語列挙
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 長音に対応した | |
nkf -w /usr/share/mecab/dic/ipadic/Noun*.csv | awk -F, '$0=$NF" "$NF' | teip -f 2 -- uconv -x latin | awk '/[aā]/&&/[iī]/&&/[uū]/&&/[eē]/&&/[oō]/' | sed -E -e'/('{[aā],[iī],[uū],[eē],[oō]}').*\1/d' | awk '{print length($1),$0}' | sort -un | |
## 長さランキング | |
nkf -w /usr/share/mecab/dic/ipadic/Noun*.csv | awk -F, '$0=$NF" "$NF' | teip -f 2 -- uconv -x latin | awk '/[aā]/&&/[iī]/&&/[uū]/&&/[eē]/&&/[oō]/' | sed -e/{'[aā].*[aā]','[iī].*[iī]','[uū].*[uū]','[eē].*[eē]','[oō].*[oō]'}/d | sort -u | awk '{print length($1),$0}' | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment