Date: Wed, 26 Apr 2017 19:33:45 +0000 (UTC) From: Joseph Mingrone <jrm@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r439488 - in head/textproc: . rubygem-whatlanguage Message-ID: <201704261933.v3QJXjI8035148@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jrm Date: Wed Apr 26 19:33:45 2017 New Revision: 439488 URL: https://svnweb.freebsd.org/changeset/ports/439488 Log: textproc/rubygem-whatlanguage: Natural language detection for text samples Adding textproc/rubygem-whatlanguage, because it is a dependency for the upcoming port, net-im/mastodon. Approved by: swills (mentor, implicit) Added: head/textproc/rubygem-whatlanguage/ head/textproc/rubygem-whatlanguage/Makefile (contents, props changed) head/textproc/rubygem-whatlanguage/distinfo (contents, props changed) head/textproc/rubygem-whatlanguage/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Wed Apr 26 19:12:16 2017 (r439487) +++ head/textproc/Makefile Wed Apr 26 19:33:45 2017 (r439488) @@ -1563,6 +1563,7 @@ SUBDIR += rubygem-unf SUBDIR += rubygem-unf_ext SUBDIR += rubygem-version_sorter + SUBDIR += rubygem-whatlanguage SUBDIR += rubygem-wikicloth SUBDIR += rubygem-xml-simple SUBDIR += rubygem-ya2yaml Added: head/textproc/rubygem-whatlanguage/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/rubygem-whatlanguage/Makefile Wed Apr 26 19:33:45 2017 (r439488) @@ -0,0 +1,19 @@ +# $FreeBSD$ + +PORTNAME= whatlanguage +PORTVERSION= 1.0.6 +CATEGORIES= textproc rubygems +MASTER_SITES= RG + +MAINTAINER= jrm@FreeBSD.org +COMMENT= Natural language detection for text samples + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +NO_ARCH= yes + +USE_RUBY= yes +USES= gem + +.include <bsd.port.mk> Added: head/textproc/rubygem-whatlanguage/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/rubygem-whatlanguage/distinfo Wed Apr 26 19:33:45 2017 (r439488) @@ -0,0 +1,3 @@ +TIMESTAMP = 1493234905 +SHA256 (rubygem/whatlanguage-1.0.6.gem) = 2f3410f4c2cc50eb582640e01b2d18c478fc7a95a3d1bcfc5d8ea05a1f68fd69 +SIZE (rubygem/whatlanguage-1.0.6.gem) = 2982400 Added: head/textproc/rubygem-whatlanguage/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/rubygem-whatlanguage/pkg-descr Wed Apr 26 19:33:45 2017 (r439488) @@ -0,0 +1,10 @@ +WhatLanguage, written in pure-Ruby, detects the human language of supplied text. +It uses Bloom filters, so it is fast and memory efficient. It works well on +text of over 10 words in length (e.g. blog posts or comments) and very poorly on +short or Twitter-esque text. + +It works with Arabic, Dutch, English, Farsi, Finnish, French, German, Greek, +Hebrew, Hungarian, Italian, Korean, Norwegian, Pinyin, Polish, Portuguese, +Russian, Spanish, and Swedish out of the box. + +WWW: https://github.com/peterc/whatlanguage
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704261933.v3QJXjI8035148>