concord.fun 383 B

12345678910111213
  1. #import std
  2. #import nat
  3. #comment -[invoke as $ concord file ... for a list words and the number of usages]-
  4. #executable (<'parameterized'>,<>)
  5. concord =
  6. ~command.files; ~&iNC+ file$[contents: ~&]+ ~contents*=; mat` ; sep` ; ~&F; -+
  7. ^(length,~&h)*; -<&r; --<''>+ * ^T(~&h+ %nP+ ~&l,:/` + ~&r),
  8. |=&+ * (* -:~& ~&p (take/26)^~(skip/65,skip/97) characters)+ *~ ~<'.,()''`\'+-