cabal-version: 2.2
name: gogol-commentanalyzer
version: 1.0.0
synopsis: Google Perspective Comment Analyzer SDK.
homepage: https://github.com/brendanhay/gogol
bug-reports: https://github.com/brendanhay/gogol/issues
license: MPL-2.0
license-file: LICENSE
author: Brendan Hay
maintainer:
Brendan Hay <brendan.g.hay+gogol@gmail.com>, Toni Cebrián <toni@tonicebrian.com>
copyright: Copyright (c) 2015-2025 Brendan Hay
category: Google
build-type: Simple
extra-source-files:
README.md
src/.gitkeep
description:
The Perspective Comment Analyzer API provides information about the potential impact of a comment on a conversation (e.g. it can provide a score for the \"toxicity\" of a comment). Users can leverage the \"SuggestCommentScore\" method to submit corrections to improve Perspective over time. Users can set the \"doNotStore\" flag to ensure that all submitted comments are automatically deleted after scores are returned.
.
/Warning:/ This is an experimental prototype/preview release which is still
under exploratory development and not intended for public use, caveat emptor!
.
This library is compatible with version @v1alpha1@
of the API.
source-repository head
type: git
location: git://github.com/brendanhay/gogol.git
subdir: gogol-commentanalyzer
flag field-selectors
description:
If record field selectors should be enabled. Disabling this requires GHC >=9.2 and the NoFieldSelectors extension.
default: False
manual: True
library
default-language: GHC2021
hs-source-dirs: src gen
ghc-options:
-Wall -fwarn-incomplete-uni-patterns
-fwarn-incomplete-record-updates -funbox-strict-fields
-fwarn-unused-packages
if (!flag(field-selectors) && impl(ghc >=9.2))
default-extensions: NoFieldSelectors
exposed-modules:
Gogol.CommentAnalyzer
Gogol.CommentAnalyzer.Comments.Analyze
Gogol.CommentAnalyzer.Comments.Suggestscore
Gogol.CommentAnalyzer.Types
other-modules:
Gogol.CommentAnalyzer.Internal.Product
Gogol.CommentAnalyzer.Internal.Sum
build-depends: gogol-core ^>=1.0.0